annotate configure.in @ 8618:f8b3ece45bda

use separate prefix for shllib and shlbin files
author John W. Eaton <jwe@octave.org>
date Wed, 28 Jan 2009 17:42:18 -0500
parents 08331c2fb00f
children f1534e248260
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.
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
4 dnl
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
5 dnl Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
6 dnl 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
7 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
8 ### This file is part of Octave.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
9 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
10 ### Octave is free software; you can redistribute it and/or modify it
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
11 ### under the terms of the GNU General Public License as published by the
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6969
diff changeset
12 ### Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6969
diff changeset
13 ### your option) any later version.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
14 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
15 ### Octave is distributed in the hope that it will be useful, but WITHOUT
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
16 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
17 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
18 ### for more details.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
19 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
20 ### You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6969
diff changeset
21 ### along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6969
diff changeset
22 ### <http://www.gnu.org/licenses/>.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
23
4587
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
24 ### Preserve CFLAGS and CXXFLAGS from the environment before doing
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
25 ### anything else because we don't know which macros might call
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
26 ### AC_PROG_CC or AC_PROG_CXX.
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
27
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
28 EXTERN_CFLAGS="$CFLAGS"
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
29 EXTERN_CXXFLAGS="$CXXFLAGS"
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
30
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
31 AC_INIT
7451
663315fc5820 [project @ 2008-02-06 10:22:48 by jwe]
jwe
parents: 7361
diff changeset
32 AC_REVISION($Revision: 1.603 $)
4531
b570d7825fb9 [project @ 2003-10-07 14:57:39 by jwe]
jwe
parents: 4513
diff changeset
33 AC_PREREQ(2.57)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
34 AC_CONFIG_SRCDIR([src/octave.cc])
1146
b78e479dbf16 [project @ 1995-02-26 22:01:22 by jwe]
jwe
parents: 1145
diff changeset
35 AC_CONFIG_HEADER(config.h)
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
36
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
37 OCTAVE_HOST_TYPE
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
38
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
39 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.])
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
40
6090
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
41 dnl FIXME -- we should probably only generate this file if it is missing.
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
42 ### Produce unistd.h for MSVC target, this simplifies changes in
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
43 ### Octave source tree and avoid problems with lex-generated code.
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
44 case "$canonical_host_type" in
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
45 *-*-msdosmsvc)
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
46 AC_MSG_NOTICE([Generating replacement for <unistd.h> for MSVC])
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
47 cat << \EOF > unistd.h
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
48 /* File generated by configure script. */
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
49 #include <direct.h>
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
50 #include <io.h>
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
51 #include <process.h>
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
52 EOF
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
53 CPPFLAGS="-I. $CPPFLAGS"
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
54 ;;
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
55 esac
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
56
5098
ab4e64f92526 [project @ 2004-12-18 15:04:20 by jwe]
jwe
parents: 5078
diff changeset
57 AC_GNU_SOURCE
ab4e64f92526 [project @ 2004-12-18 15:04:20 by jwe]
jwe
parents: 5078
diff changeset
58
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
59 AC_AIX
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
60 AC_MINIX
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
61 AC_ISC_POSIX
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
62
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
63 ### Path separator.
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
64 sepchar=:
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
65 AC_ARG_WITH(sepchar,
5842
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
66 [AS_HELP_STRING([--with-sepchar=<char>],
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
67 [use <char> as the path separation character])])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
68 case $with_sepchar in
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
69 yes | "")
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
70 case "$canonical_host_type" in
6090
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
71 *-*-mingw* | *-*-msdosmsvc)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
72 sepchar=';'
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
73 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
74 esac
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
75 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
76 no)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
77 AC_MSG_ERROR([You are required to define a path separation character])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
78 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
79 *)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
80 sepchar=$with_sepchar
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
81 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
82 esac
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
83 AC_SUBST(sepchar)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
84 AC_DEFINE_UNQUOTED(SEPCHAR, ['$sepchar'], [Define this to be the path separator for your system, as a character constant.])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
85 AC_DEFINE_UNQUOTED(SEPCHAR_STR, ["$sepchar"], [Define this to the path separator, as a string.])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
86
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2162
diff changeset
87 ### some defaults
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2162
diff changeset
88
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
89 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1')
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
90 OCTAVE_SET_DEFAULT(man1ext, '.1')
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
91 OCTAVE_SET_DEFAULT(infofile, '$(infodir)/octave.info')
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
92 OCTAVE_SET_DEFAULT(octincludedir, '$(includedir)/octave-$(version)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
93 OCTAVE_SET_DEFAULT(fcnfiledir, '$(datadir)/octave/$(version)/m')
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
94 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m')
4449
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4439
diff changeset
95 OCTAVE_SET_DEFAULT(localapifcnfiledir,
5778
70f67d85558d [project @ 2006-04-27 01:34:08 by jwe]
jwe
parents: 5775
diff changeset
96 '$(datadir)/octave/site/$(api_version)/m')
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
97 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m')
3141
292ff0bf484b [project @ 1998-02-03 08:11:07 by jwe]
jwe
parents: 3131
diff changeset
98 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave-$(version)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
99 OCTAVE_SET_DEFAULT(archlibdir,
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
100 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
101 OCTAVE_SET_DEFAULT(localarchlibdir,
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
102 '$(libexecdir)/octave/site/exec/$(canonical_host_type)')
5909
a6a2423a9c25 [project @ 2006-07-27 19:35:22 by jwe]
jwe
parents: 5904
diff changeset
103 OCTAVE_SET_DEFAULT(localapiarchlibdir,
a6a2423a9c25 [project @ 2006-07-27 19:35:22 by jwe]
jwe
parents: 5904
diff changeset
104 '$(libexecdir)/octave/$(api_version)/site/exec/$(canonical_host_type)')
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
105 OCTAVE_SET_DEFAULT(localverarchlibdir,
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
106 '$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
107 OCTAVE_SET_DEFAULT(octfiledir,
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
108 '$(libexecdir)/octave/$(version)/oct/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
109 OCTAVE_SET_DEFAULT(localoctfiledir,
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
110 '$(libexecdir)/octave/site/oct/$(canonical_host_type)')
4449
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4439
diff changeset
111 OCTAVE_SET_DEFAULT(localapioctfiledir,
5778
70f67d85558d [project @ 2006-04-27 01:34:08 by jwe]
jwe
parents: 5775
diff changeset
112 '$(libexecdir)/octave/site/oct/$(api_version)/$(canonical_host_type)')
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
113 OCTAVE_SET_DEFAULT(localveroctfiledir,
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
114 '$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
115 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib')
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
116
2155
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
117 ### Make configure args available for other uses.
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
118
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
119 config_opts=$ac_configure_args
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
120 AC_SUBST(config_opts)
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
121
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
122 ### Make it possible to have Octave's array and matrix classes do bounds
2108
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
123 ### checking on element references. This slows some operations down a
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
124 ### bit, so it is turned off by default.
2108
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
125
2450
c196b6a780b3 [project @ 1996-10-30 23:15:55 by jwe]
jwe
parents: 2439
diff changeset
126 BOUNDS_CHECKING=false
2108
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
127 AC_ARG_ENABLE(bounds-check,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
128 [AS_HELP_STRING([--enable-bounds-check],
7091
5608935ff522 [project @ 2007-10-31 21:26:39 by jwe]
jwe
parents: 7067
diff changeset
129 [bounds checking for indexing in internal array classes (default is no)])],
3060
9c6cd52f3f5a [project @ 1997-06-25 18:30:40 by jwe]
jwe
parents: 3059
diff changeset
130 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], [])
2108
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
131 if $BOUNDS_CHECKING; then
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
132 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.])
2108
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
133 fi
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
134
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
135 ### If possible, use a 64-bit integer type for array dimensions and indexing.
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
136
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
137 USE_64_BIT_IDX_T=false
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
138 OCTAVE_IDX_TYPE=int
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
139 AC_ARG_ENABLE(64,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
140 [AS_HELP_STRING([--enable-64],
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
141 [(EXPERIMENTAL) use 64-bit integers for array dimensions and indexing])],
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
142 [if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi], [])
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
143 if $USE_64_BIT_IDX_T; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
144 AC_CHECK_SIZEOF(void *)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
145 AC_CHECK_SIZEOF(int)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
146 AC_CHECK_SIZEOF(long)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
147 if test $ac_cv_sizeof_void_p -eq 8; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
148 if test $ac_cv_sizeof_int -eq 8; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
149 OCTAVE_IDX_TYPE=int
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
150 elif test $ac_cv_sizeof_long -eq 8; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
151 OCTAVE_IDX_TYPE=long
5351
05adf9de7657 [project @ 2005-05-16 20:07:36 by dbateman]
dbateman
parents: 5337
diff changeset
152 AC_DEFINE(IDX_TYPE_LONG, 1, [Define to 1 if octave index type is long])
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
153 else
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
154 warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features"
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
155 AC_MSG_WARN($warn_64_bit)
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
156 USE_64_BIT_IDX_T=false
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
157 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
158 else
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
159 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features"
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
160 AC_MSG_WARN($warn_64_bit)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
161 USE_64_BIT_IDX_T=false
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
162 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
163 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
164 AC_SUBST(OCTAVE_IDX_TYPE)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
165 if $USE_64_BIT_IDX_T; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
166 AC_DEFINE(USE_64_BIT_IDX_T, 1, [Define if using 64-bit integers for array dimensions and indexing])
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
167 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
168 AC_SUBST(USE_64_BIT_IDX_T)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
169
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 3184
diff changeset
170 ### It seems that there are some broken inline assembly functions in
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 3184
diff changeset
171 ### the GNU libc. Since I'm not sure how to test whether we are using
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 3184
diff changeset
172 ### GNU libc, just disable them for all platforms.
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 3184
diff changeset
173
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
174 AC_MSG_NOTICE([defining __NO_MATH_INLINES avoids buggy GNU libc exp function])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
175 AC_DEFINE(__NO_MATH_INLINES, 1, [Define if your version of GNU libc has buggy inline assembly code for math functions like exp.])
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 3184
diff changeset
176
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
177 ### See which C++ compiler to use (we expect to find g++).
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
178
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
179 AC_PROG_CXX
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
180 AC_PROG_CXXCPP
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
181
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
182 ### Do special things for g++.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
183
2353
383ce9cdcf31 [project @ 1996-08-15 20:05:44 by jwe]
jwe
parents: 2346
diff changeset
184 gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \
4368
c45874c087c7 [project @ 2003-03-17 14:01:56 by jwe]
jwe
parents: 4366
diff changeset
185 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'`
3107
a8dcfbf87ea3 [project @ 1997-11-19 22:34:59 by jwe]
jwe
parents: 3105
diff changeset
186
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
187 case "$gxx_version" in
4368
c45874c087c7 [project @ 2003-03-17 14:01:56 by jwe]
jwe
parents: 4366
diff changeset
188 1.* | 2.[[012345678]].*)
4843
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
189 AC_MSG_ERROR([g++ version $gxx_version will probably fail to compile Octave]
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
190 )
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
191 ;;
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
192 2.9*)
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
193 warn_gxx_version="g++ version $gxx_version is likely to cause problems"
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
194 AC_MSG_WARN($warn_gxx_version)
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
195 ;;
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
196 esac
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
197
1894
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
198 CXX_VERSION=
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
199 if test -n "$gxx_version"; then
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
200 CXX_VERSION="$gxx_version"
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
201 fi
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
202 AC_SUBST(CXX_VERSION)
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
203
3107
a8dcfbf87ea3 [project @ 1997-11-19 22:34:59 by jwe]
jwe
parents: 3105
diff changeset
204 OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL
3769
7c8e3c42ed04 [project @ 2001-01-31 22:15:51 by jwe]
jwe
parents: 3740
diff changeset
205 OCTAVE_CXX_ISO_COMPLIANT_LIBRARY
5854
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
206 OCTAVE_CXX_BROKEN_REINTERPRET_CAST
3107
a8dcfbf87ea3 [project @ 1997-11-19 22:34:59 by jwe]
jwe
parents: 3105
diff changeset
207
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
208 ### See which C compiler to use (we expect to find gcc).
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
209
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
210 AC_PROG_CC
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
211 AC_PROG_CPP
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
212 AC_PROG_GCC_TRADITIONAL
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
213
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
214 ### Do special things for gcc.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
215
2353
383ce9cdcf31 [project @ 1996-08-15 20:05:44 by jwe]
jwe
parents: 2346
diff changeset
216 gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \
3107
a8dcfbf87ea3 [project @ 1997-11-19 22:34:59 by jwe]
jwe
parents: 3105
diff changeset
217 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'`
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
218 case "$gcc_version" in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
219 2.*)
1087
85731fac3a15 [project @ 1995-02-01 17:02:44 by jwe]
jwe
parents: 1076
diff changeset
220 if test -z "$LDFLAGS"; then
85731fac3a15 [project @ 1995-02-01 17:02:44 by jwe]
jwe
parents: 1076
diff changeset
221 LDFLAGS="-g"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
222 AC_MSG_NOTICE([defining LDFLAGS to be $LDFLAGS])
1087
85731fac3a15 [project @ 1995-02-01 17:02:44 by jwe]
jwe
parents: 1076
diff changeset
223 fi
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
224 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
225 1.*)
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
226 warn_gcc_version="gcc version $gcc_version is likely to cause problems"
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
227 AC_MSG_WARN($warn_gcc_version)
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
228 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
229 esac
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
230
1894
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
231 CC_VERSION=
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
232 if test -n "$gcc_version"; then
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
233 CC_VERSION="$gcc_version"
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
234 fi
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
235 AC_SUBST(CC_VERSION)
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
236
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
237 ### The flag to create dependency varies depending on the compier.
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
238
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
239 # Assume GCC.
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
240 INCLUDE_DEPS=true
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
241 DEPEND_FLAGS="-M"
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
242 DEPEND_EXTRA_SED_PATTERN=""
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
243 if test "$GCC" = yes; then
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
244 true
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
245 else
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
246 case "$canonical_host_type" in
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
247 sparc-sun-solaris2* | i386-pc-solaris2*)
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
248 DEPEND_FLAGS="-xM1"
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
249 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'"
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
250 ;;
7451
663315fc5820 [project @ 2008-02-06 10:22:48 by jwe]
jwe
parents: 7361
diff changeset
251 *-*-msdosmsvc)
663315fc5820 [project @ 2008-02-06 10:22:48 by jwe]
jwe
parents: 7361
diff changeset
252 ;;
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
253 *)
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
254 INCLUDE_DEPS=false
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
255 ;;
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
256 esac
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
257 fi
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
258 AC_SUBST(INCLUDE_DEPS)
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
259 AC_SUBST(DEPEND_FLAGS)
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
260 AC_SUBST(DEPEND_EXTRA_SED_PATTERN)
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
261
8560
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
262 AC_PATH_X
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
263 if test "$have_x"; then
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
264 AC_DEFINE(HAVE_X_WINDOWS, 1, [Define if you have X11])
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
265
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
266 X11_INCFLAGS="$x_includes"
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
267 AC_SUBST(X11_INCFLAGS)
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
268
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
269 AC_CHECK_LIB(X11, XrmInitialize, [X11_LIBS=-lX11], [X11_LIBS=])
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
270 AC_SUBST(X11_LIBS)
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
271 fi
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
272
8595
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
273 ### On MacOSX system the Carbon framework is used to determine ScreenSize
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
274 OCTAVE_HAVE_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>], [CGMainDisplayID ()],
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
275 [have_carbon="yes"], [have_carbon="no"])
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
276 if test $have_carbon = "yes"; then
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
277 AC_DEFINE(HAVE_FRAMEWORK_CARBON, 1, [Define if framework CARBON is available.])
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
278 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,Carbon"
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
279 AC_MSG_NOTICE([adding -Wl,-framework -Wl,Carbon to LDFLAGS])
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
280 fi
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
281
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
282 ### On Intel systems with gcc, we may need to compile with -mieee-fp
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
283 ### and -ffloat-store to get full support for IEEE floating point.
2020
8e393fad9362 [project @ 1996-03-22 12:21:44 by jwe]
jwe
parents: 2019
diff changeset
284 ###
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
285 ### On Alpha/OSF systems, we need -mieee.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
286
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
287 ieee_fp_flag=
350
52f8902e06f9 [project @ 1994-02-10 08:08:57 by jwe]
jwe
parents: 324
diff changeset
288 case "$canonical_host_type" in
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
289 ## Keep this pattern first, so that it is preferred over the
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
290 ## following pattern for x86.
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
291 *-*-msdosmsvc)
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
292 CXXFLAGS="$CXXFLAGS -EHs -MD"
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
293 CFLAGS="$CFLAGS -MD"
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
294 ;;
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
295 i[[3456789]]86-*-*)
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
296 if test "$GCC" = yes; then
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
297 OCTAVE_CC_FLAG(-mieee-fp, [
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
298 ieee_fp_flag=-mieee-fp
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
299 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
300 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CFLAGS])])
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
301
5078
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
302 ### OCTAVE_CC_FLAG(-ffloat-store, [
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
303 ### float_store_flag=-ffloat-store
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
304 ### XTRA_CFLAGS="$XTRA_CFLAGS -ffloat-store"
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
305 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CFLAGS])])
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
306 fi
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
307 if test "$GXX" = yes; then
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
308 OCTAVE_CXX_FLAG(-mieee-fp, [
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
309 ieee_fp_flag=-mieee-fp
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
310 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
311 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CXXFLAGS])])
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
312
5078
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
313 ### OCTAVE_CXX_FLAG(-ffloat-store, [
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
314 ### float_store_flag=-ffloat-store
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
315 ### XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ffloat-store"
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
316 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CXXFLAGS])])
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
317 fi
324
7bf8cd7cafde [project @ 1994-02-02 10:58:58 by jwe]
jwe
parents: 317
diff changeset
318 ;;
3127
d6ebd123170a [project @ 1998-01-16 05:59:35 by jwe]
jwe
parents: 3126
diff changeset
319 alpha*-*-*)
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
320 if test "$GCC" = yes; then
4812
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
321 OCTAVE_CC_FLAG(-mieee, [
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
322 ieee_fp_flag=-mieee
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
323 XTRA_CFLAGS="$XTRA_CFLAGS -mieee"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
324 AC_MSG_NOTICE([adding -mieee to XTRA_CFLAGS])])
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
325 else
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
326 OCTAVE_CC_FLAG(-ieee, [
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
327 ieee_fp_flag=-ieee
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
328 XTRA_CFLAGS="$XTRA_CFLAGS -ieee"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
329 AC_MSG_NOTICE([adding -ieee to XTRA_CFLAGS])])
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
330 fi
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
331 if test "$GXX" = yes; then
4812
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
332 OCTAVE_CXX_FLAG(-mieee, [
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
333 ieee_fp_flag=-mieee
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
334 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
335 AC_MSG_NOTICE([adding -mieee to XTRA_CXXFLAGS])])
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
336 else
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
337 OCTAVE_CXX_FLAG(-ieee, [
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
338 ieee_fp_flag=-ieee
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
339 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
340 AC_MSG_NOTICE([adding -ieee to XTRA_CXXFLAGS])])
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
341 fi
2020
8e393fad9362 [project @ 1996-03-22 12:21:44 by jwe]
jwe
parents: 2019
diff changeset
342 ;;
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3174
diff changeset
343 *ibm-aix4*)
3351
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
344 OCTAVE_CC_FLAG(-mminimal-toc, [
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
345 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"])
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3174
diff changeset
346
3351
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
347 OCTAVE_CXX_FLAG(-mminimal-toc, [
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
348 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"])
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3174
diff changeset
349 ;;
324
7bf8cd7cafde [project @ 1994-02-02 10:58:58 by jwe]
jwe
parents: 317
diff changeset
350 esac
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
351
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
352 AC_SUBST(XTRA_CFLAGS)
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
353 AC_SUBST(XTRA_CXXFLAGS)
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
354
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
355 ### Use -static if compiling on Alpha OSF/1 1.3 systems.
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
356
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
357 case "$canonical_host_type" in
3127
d6ebd123170a [project @ 1998-01-16 05:59:35 by jwe]
jwe
parents: 3126
diff changeset
358 alpha*-dec-osf1.3)
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
359 LD_STATIC_FLAG=-static
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
360 ;;
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
361 esac
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
362 if test -n "$LD_STATIC_FLAG"; then
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
363 AC_MSG_NOTICE([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG])
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
364 fi
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
365 AC_SUBST(LD_STATIC_FLAG)
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
366
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
367 ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
368 ### the compilers that we use for building tools on the build system.
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4094
diff changeset
369 ### For now, we assume that the only cross compiling we can do is
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
370 ### with gcc on a Unixy system, but the dedicated hacker can override these.
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
371
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
372 if test "$cross_compiling" = yes; then
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
373 BUILD_CC="gcc"
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
374 BUILD_CFLAGS="-O2 -g"
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
375 BUILD_CXX="g++"
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
376 BUILD_CXXFLAGS="-O2 -g"
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
377 BUILD_LDFLAGS=""
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4094
diff changeset
378 BUILD_EXEEXT=""
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
379 else
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
380 BUILD_CC='$(CC)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
381 BUILD_CFLAGS='$(CFLAGS)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
382 BUILD_CXX='$(CXX)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
383 BUILD_CXXFLAGS='$(CXXFLAGS)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
384 BUILD_LDFLAGS='$(LDFLAGS)'
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
385 case "$canonical_host_type" in
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
386 sparc-sun-solaris2*)
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
387 if test "$GCC" != yes; then
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
388 ## The Sun C++ compiler never seems to complete compiling
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
389 ## gendoc.cc unless we reduce the optimization level...
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
390 BUILD_CXXFLAGS="-g -O1"
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
391 fi
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
392 ;;
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
393 esac
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
394 BUILD_EXEEXT='$(EXEEXT)'
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
395 fi
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
396
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
397 AC_ARG_VAR(BUILD_CC, [build system C compiler (used if cross compiling)])
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
398 AC_ARG_VAR(BUILD_CFLAGS, [build system C compiler flags (used if cross compiling)])
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
399 AC_ARG_VAR(BUILD_CXX, [build system C++ compiler (used if cross compiling)])
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
400 AC_ARG_VAR(BUILD_CXXFLAGS, [build system C++ compiler flags (used if cross compiling)])
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
401 AC_ARG_VAR(BUILD_LDFLAGS, [build system C++ compiler link flags (used if cross compiling)])
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
402 AC_ARG_VAR(BUILD_EXEEXT, [build system executable extension (used if cross compiling)])
3222
dae85431bade [project @ 1998-11-19 22:14:06 by jwe]
jwe
parents: 3220
diff changeset
403
3232
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
404 dnl This is bogus. We shouldn't have to explicitly add libc too!
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
405
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
406 ### Look for math library. If found, this will add -lm to LIBS.
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
407
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
408 case "$canonical_host_type" in
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
409 *-*-nextstep*)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
410 ;;
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
411 *-*-linux*)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
412 AC_CHECK_LIB(m, sin, , , -lc)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
413 ;;
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
414 *)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
415 AC_CHECK_LIB(m, sin)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
416 ;;
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
417 esac
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
418
6823
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
419 ### Check for the QHull library
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
420 AC_SUBST(QHULL_LIBS)
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
421 AC_CHECK_HEADER(qhull/qhull_a.h, have_qhull=yes, have_qhull=no)
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
422 if test "$have_qhull" = yes; then
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
423 AC_CHECK_LIB(qhull, qh_qhull, have_qhull=yes, have_qhull=no)
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
424 if test "$have_qhull" != yes; then
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
425 AC_CHECK_QHULL_VERSION(have_qhull=yes, have_qhull=no)
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
426 AC_DEFINE(NEED_QHULL_VERSION, 1, [Define if the QHull library needs a wh_version variable defined.])
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
427 fi
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
428 fi
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
429 if test "$have_qhull" = yes; then
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
430 AC_DEFINE(HAVE_QHULL, 1, [Define if the QHull library is used.])
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
431 QHULL_LIBS="-lqhull"
6855
a052825889a0 [project @ 2007-09-01 00:08:16 by dbateman]
dbateman
parents: 6829
diff changeset
432 TEXINFO_QHULL="@set HAVE_QHULL"
6823
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
433 else
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
434 warn_qhull="Qhull library not found --- This will result in loss of functionality of some geometry functions."
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
435 AC_MSG_WARN($warn_qhull)
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
436 fi
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
437
6855
a052825889a0 [project @ 2007-09-01 00:08:16 by dbateman]
dbateman
parents: 6829
diff changeset
438 AC_SUBST(TEXINFO_QHULL)
a052825889a0 [project @ 2007-09-01 00:08:16 by dbateman]
dbateman
parents: 6829
diff changeset
439
5585
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
440 ### Check for pcre/regex library.
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
441
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
442 ## check for pcre-config, and if so, set CPPFLAGS appropriately
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
443 AC_CHECK_PROG(WITH_PCRE_CONFIG, pcre-config, yes, no)
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
444 if test $WITH_PCRE_CONFIG = yes ; then
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
445 CPPFLAGS="$CPPFLAGS $(pcre-config --cflags)"
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
446 fi
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
447
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
448 ## NB: no need to do separate check for pcre.h header -- checking macros is good enough
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
449 AC_CACHE_CHECK([whether pcre.h defines the macros we need], [ac_cv_pcre_h_macros_present], [
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
450 AC_EGREP_CPP([PCRE_HAS_MACROS_WE_NEED], [
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
451 #include <pcre.h>
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
452 #if defined (PCRE_INFO_NAMECOUNT) \
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
453 && defined (PCRE_INFO_NAMEENTRYSIZE) \
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
454 && defined (PCRE_INFO_NAMETABLE)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
455 PCRE_HAS_MACROS_WE_NEED
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
456 #endif], ac_cv_pcre_h_macros_present=yes, ac_cv_pcre_h_macros_present=no)])
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
457 WITH_PCRE="$ac_cv_pcre_h_macros_present"
7169
f83b2ca41b05 [project @ 2007-11-13 17:17:38 by jwe]
jwe
parents: 7155
diff changeset
458
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
459 REGEX_LIBS=
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
460 if test $WITH_PCRE = yes; then
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
461 AC_DEFINE(HAVE_PCRE, 1, [Define if PCRE is available.])
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
462 if test $WITH_PCRE_CONFIG = yes; then
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
463 REGEX_LIBS=$(pcre-config --libs)
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
464 else
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
465 REGEX_LIBS=-lpcre
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
466 fi
7174
ff4a4cc863a9 [project @ 2007-11-14 19:16:12 by jwe]
jwe
parents: 7173
diff changeset
467 else
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
468 warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions."
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
469 AC_MSG_WARN($warn_pcre)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
470 fi
7169
f83b2ca41b05 [project @ 2007-11-13 17:17:38 by jwe]
jwe
parents: 7155
diff changeset
471
5585
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
472 AC_CHECK_FUNCS(regexec, WITH_REGEX=yes , [
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
473 AC_CHECK_LIB(regex, regexec, WITH_REGEX=yes, WITH_REGEX=no)])
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
474 if test $WITH_REGEX = yes ; then
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
475 AC_DEFINE(HAVE_REGEX, 1, [Define if regex is available.])
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
476 AC_CHECK_FUNCS(regexec, REGEX_LIBS= , [
8607
08331c2fb00f add -lregex to REGEX_LIBS at configure stage, add ARPACK_LIBS, REGEX_LIBS to liboctave's link deps
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8595
diff changeset
477 AC_CHECK_LIB(regex, regexec, REGEX_LIBS="$REGEX_LIBS -lregex")])
5585
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
478 fi
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
479 if test $WITH_REGEX = no; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
480 warn_regex="regular expression functions not found. The regular expression matching functions will be disabled."
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
481 AC_MSG_WARN($warn_regex)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
482 fi
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
483
7169
f83b2ca41b05 [project @ 2007-11-13 17:17:38 by jwe]
jwe
parents: 7155
diff changeset
484 AC_SUBST(REGEX_LIBS)
5585
6dbb3f6d0054 [project @ 2005-12-15 01:40:58 by jwe]
jwe
parents: 5547
diff changeset
485
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
486 ### Check for ZLIB library.
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
487
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
488 WITH_ZLIB=true
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
489 AC_ARG_WITH(zlib,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
490 [AS_HELP_STRING([--without-zlib], [don't use zlib])],
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
491 with_zlib=$withval, with_zlib=yes)
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
492
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
493 zlib_lib=
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
494 if test "$with_zlib" = yes; then
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
495 zlib_lib="z"
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
496 elif test "$with_zlib" != no; then
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
497 zlib_lib="$with_zlib"
3687
b5a285d1c1f4 [project @ 2000-06-29 21:33:00 by jwe]
jwe
parents: 3673
diff changeset
498 fi
b5a285d1c1f4 [project @ 2000-06-29 21:33:00 by jwe]
jwe
parents: 3673
diff changeset
499
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
500 ZLIB_LIBS=
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
501 WITH_ZLIB=false
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
502 if test -n "$zlib_lib"; then
5337
7ffada2604ea [project @ 2005-05-05 03:55:22 by jwe]
jwe
parents: 5330
diff changeset
503 AC_CHECK_LIB($zlib_lib, gzclearerr, [
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
504 AC_CHECK_HEADERS(zlib.h, [
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
505 WITH_ZLIB=true
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
506 ZLIB_LIBS="-l$zlib_lib"
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
507 LIBS="$ZLIB_LIBS $LIBS"
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
508 AC_DEFINE(HAVE_ZLIB, 1, [Define if ZLIB is available.])])])
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
509 fi
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
510
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
511 if $WITH_ZLIB; then
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
512 ### Check for HDF5 library.
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
513
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
514 WITH_HDF5=true
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
515 AC_ARG_WITH(hdf5,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
516 [AS_HELP_STRING([--without-hdf5], [don't use HDF5])],
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
517 with_hdf5=$withval, with_hdf5=yes)
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
518
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
519 hdf5_lib=
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
520 if test "$with_hdf5" = yes; then
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
521 hdf5_lib="hdf5"
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
522 elif test "$with_hdf5" != no; then
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
523 hdf5_lib="$with_hdf5"
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
524 fi
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
525
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
526 HDF5_LIBS=
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
527 WITH_HDF5=false
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
528 if test -n "$hdf5_lib"; then
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
529 AC_CHECK_LIB($hdf5_lib, H5Pcreate, [
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
530 AC_CHECK_HEADERS(hdf5.h, [
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
531 WITH_HDF5=true
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
532 HDF5_LIBS="-l$hdf5_lib"
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
533 LIBS="$HDF5_LIBS $LIBS"
4696
fcab389ad291 [project @ 2004-01-15 02:11:59 by jwe]
jwe
parents: 4645
diff changeset
534 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available.])
fcab389ad291 [project @ 2004-01-15 02:11:59 by jwe]
jwe
parents: 4645
diff changeset
535 AC_CHECK_LIB($hdf5_lib, H5Gget_num_objs, [
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
536 AC_DEFINE(HAVE_H5GGET_NUM_OBJS, 1, [Define if HDF5 has H5Gget_num_objs.])])])])
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
537 fi
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
538
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
539 if $WITH_HDF5; then
6276
d26c558691cd [project @ 2007-02-07 09:01:24 by jwe]
jwe
parents: 6271
diff changeset
540 case "$canonical_host_type" in
d26c558691cd [project @ 2007-02-07 09:01:24 by jwe]
jwe
parents: 6271
diff changeset
541 *-*-msdosmsvc)
d26c558691cd [project @ 2007-02-07 09:01:24 by jwe]
jwe
parents: 6271
diff changeset
542 OCTAVE_HDF5_DLL
d26c558691cd [project @ 2007-02-07 09:01:24 by jwe]
jwe
parents: 6271
diff changeset
543 ;;
d26c558691cd [project @ 2007-02-07 09:01:24 by jwe]
jwe
parents: 6271
diff changeset
544 esac
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
545 true
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
546 else
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
547 warn_hdf5="HDF5 library not found. Octave will not be able to save or load HDF5 data files."
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
548 AC_MSG_WARN($warn_hdf5)
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
549 fi
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
550 else
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
551 warn_zlib="ZLIB library not found. Octave will not be able to save or load compressed data files or HDF5 files."
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
552 AC_MSG_WARN($warn_zlib)
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
553 fi
3687
b5a285d1c1f4 [project @ 2000-06-29 21:33:00 by jwe]
jwe
parents: 3673
diff changeset
554
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
555
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
556 # Checks for FFTW header and library.
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
557
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
558 # subdirectories of libcruft to build if they aren't found on the system:
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
559 FFT_DIR="fftpack"
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
560 AC_SUBST(FFT_DIR)
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
561
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
562 # Installed fftw library, if any.
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
563 FFTW_LIBS=''
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
564 AC_SUBST(FFTW_LIBS)
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
565
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
566 AC_ARG_WITH(fftw,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
567 [AS_HELP_STRING([--without-fftw],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
568 [use included fftpack instead of installed fftw])],
3886
96919c87953c [project @ 2002-04-03 21:20:56 by jwe]
jwe
parents: 3857
diff changeset
569 with_fftw=$withval, with_fftw=yes)
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
570
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
571 if test "$with_fftw" = yes; then
4773
ccfbd6047a54 [project @ 2004-02-16 19:02:32 by jwe]
jwe
parents: 4760
diff changeset
572 have_fftw3_header=no
ccfbd6047a54 [project @ 2004-02-16 19:02:32 by jwe]
jwe
parents: 4760
diff changeset
573 with_fftw3=no
6668
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
574 AC_CHECK_HEADER(fftw3.h, [have_fftw3_header=yes])
4773
ccfbd6047a54 [project @ 2004-02-16 19:02:32 by jwe]
jwe
parents: 4760
diff changeset
575 if test "$have_fftw3_header" = yes; then
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7683
diff changeset
576 AC_CHECK_LIB(fftw3, fftw_plan_dft_1d, [
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7683
diff changeset
577 AC_CHECK_LIB(fftw3f, fftwf_plan_dft_1d, [FFTW_LIBS="-lfftw3 -lfftw3f"; with_fftw3=yes])])
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
578 fi
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
579 fi
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
580
4773
ccfbd6047a54 [project @ 2004-02-16 19:02:32 by jwe]
jwe
parents: 4760
diff changeset
581 if test "$with_fftw" = yes && test "$with_fftw3" = yes; then
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
582 FFT_DIR=''
4773
ccfbd6047a54 [project @ 2004-02-16 19:02:32 by jwe]
jwe
parents: 4760
diff changeset
583 AC_DEFINE(HAVE_FFTW3, 1, [Define if the FFTW3 library is used.])
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
584 else
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
585 warn_fftw="FFTW library not found. Octave will use the (slower) FFTPACK library instead."
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
586 AC_MSG_RESULT($warn_fftw)
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
587 fi
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
588
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
589 # Checks for GLPK header and library.
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
590
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
591 AC_ARG_WITH(glpk,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
592 [AS_HELP_STRING([--without-glpk], [don't use GLPK])],
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
593 with_glpk=$withval, with_glpk=yes)
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
594
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
595 glpk_lib=
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
596 if test "$with_glpk" = yes; then
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
597 glpk_lib="glpk"
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
598 elif test "$with_glpk" != no; then
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
599 glpk_lib="$with_glpk"
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
600 fi
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
601
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
602 GLPK_LIBS=
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
603 if test -n "$glpk_lib"; then
6806
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
604 AC_CHECK_HEADERS([glpk/glpk.h glpk.h], [
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
605 AC_CHECK_LIB($glpk_lib, glp_lpx_simplex, [
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
606 GLPK_LIBS="-l$glpk_lib"
6806
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
607 AC_DEFINE(GLPK_PRE_4_14, 1, [Define if GLPK version is less than 4.14.])], [
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
608 AC_CHECK_LIB($glpk_lib, _glp_lpx_simplex, [
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
609 GLPK_LIBS="-l$glpk_lib"], [])])
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
610
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
611 if test -n "$GLPK_LIBS"; then
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
612 AC_DEFINE(HAVE_GLPK, 1, [Define if GLPK is available.])
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
613 fi
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
614 break])
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
615 fi
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
616 AC_SUBST(GLPK_LIBS)
6806
afa9123c5faa [project @ 2007-07-30 18:36:01 by jwe]
jwe
parents: 6804
diff changeset
617 if test -z "$GLPK_LIBS"; then
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
618 warn_glpk="GLPK library not found. The glpk function for solving linear programs will be disabled."
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
619 fi
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
620
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
621 # Checks for CURL header and library.
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
622
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
623 AC_ARG_WITH(curl,
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
624 [AS_HELP_STRING([--without-curl], [don't use CURL])],
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
625 with_curl=$withval, with_curl=yes)
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
626
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
627 curl_lib=
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
628 if test "$with_curl" = yes; then
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
629 curl_lib="curl"
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
630 elif test "$with_curl" != no; then
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
631 curl_lib="$with_curl"
6335
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
632 else
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
633 curl_missing=yes
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
634 fi
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
635
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
636 CURL_LIBS=
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
637 if test -n "$curl_lib"; then
6056
1297bb9a3ad0 [project @ 2006-10-17 19:39:14 by jwe]
jwe
parents: 6051
diff changeset
638 AC_CHECK_LIB($curl_lib, curl_easy_escape, [
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
639 AC_CHECK_HEADERS(curl/curl.h, [
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
640 CURL_LIBS="-l$curl_lib"
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
641 AC_DEFINE(HAVE_CURL, 1, [Define if CURL is available.])], [
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
642 curl_missing=yes])])
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
643 fi
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
644 AC_SUBST(CURL_LIBS)
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
645 if test "$curl_missing" = yes; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
646 warn_curl="cURL library not found. The urlread and urlwrite functions will be disabled."
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
647 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
648
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
649 # GraphicsMagick++
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
650
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
651 warn_magick=
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
652 AC_CHECK_PROGS(MAGICK_CONFIG, [GraphicsMagick++-config GraphicsMagick-config])
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
653 if test -z "$MAGICK_CONFIG"; then
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
654 warn_magick="GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional"
7937
6661387827d6 Allow build without GraphicsMagick installed
David Bateman <dbateman@free.fr>
parents: 7934
diff changeset
655 else
6661387827d6 Allow build without GraphicsMagick installed
David Bateman <dbateman@free.fr>
parents: 7934
diff changeset
656 AC_DEFINE(HAVE_MAGICK, 1, [Define if GraphicsMagick++ is available.])
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
657 fi
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
658
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
659 # ---------------------------------------------------------------------
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
660
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
661 ## libraries needed for graphics
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
662
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
663 warn_freetype=""
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
664 warn_ftgl=""
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
665
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
666 OCTAVE_OPENGL
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
667 if test -n "$OPENGL_LIBS"; then
7954
3ffc34caec65 configure fixes
John W. Eaton <jwe@octave.org>
parents: 7953
diff changeset
668 AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is available])
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
669
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
670 ## ftgl (needs freetype 2)
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
671 AC_CHECK_FT2([9.0.3],[],
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
672 [warn_freetype="FreeType library not found. Native renderer will not have on-screen text"])
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
673 if test -z "$warn_freetype"; then
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
674 AC_LANG_PUSH(C++)
8269
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
675 save_LIBS="$LIBS"
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
676 save_CXXFLAGS="$CXXFLAGS"
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
677 save_CPPFLAGS="$CPPFLAGS"
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
678 LIBS="$LIBS $OPENGL_LIBS $FT2_LIBS"
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
679 CXXFLAGS="$CXXFLAGS $FT2_CFLAGS"
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
680 CPPFLAGS="$CPPFLAGS $FT2_CFLAGS"
7953
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
681 has_ftgl_h=yes
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
682 AC_CHECK_HEADERS([FTGL/ftgl.h ftgl.h], break, [
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
683 AC_CHECK_HEADERS([FTGL/FTGL.h FTGL.h], [
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
684 AC_DEFINE(HAVE_FTGL_UPPERCASE,1,[Define to 1 if you have FTGL.h or FTGL/FTGL.h])
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
685 break
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
686 ], has_ftgl_h=no)])
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
687 if test "$has_ftgl_h" = yes; then
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
688 AC_MSG_CHECKING([for FTGLTextureFont in -lftgl])
8269
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
689 LIBS="$LIBS -lftgl"
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
690 AC_TRY_LINK([
7915
d74e515cb535 configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
691 #ifdef HAVE_FTGL_FTGL_H
7953
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
692 #ifdef HAVE_FTGL_UPPERCASE
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
693 #include <FTGL/FTGL.h>
7958
9939bb6332a3 FTGL configure test fix
John W. Eaton <jwe@octave.org>
parents: 7956
diff changeset
694 #include <FTGL/FTGLTextureFont.h>
7953
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
695 #else
7915
d74e515cb535 configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
696 #include <FTGL/ftgl.h>
7953
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
697 #endif
7915
d74e515cb535 configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
698 #elif HAVE_FTGL_H
7953
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
699 #ifdef HAVE_FTGL_UPPERCASE
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
700 #include <FTGL.h>
7958
9939bb6332a3 FTGL configure test fix
John W. Eaton <jwe@octave.org>
parents: 7956
diff changeset
701 #include <FTGLTextureFont.h>
7953
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
702 #else
7915
d74e515cb535 configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents: 7914
diff changeset
703 #include <ftgl.h>
7953
efabe34cce70 make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents: 7944
diff changeset
704 #endif
7921
fcc70f30fe31 configure.in: use #endif, not #fi in test
John W. Eaton <jwe@octave.org>
parents: 7915
diff changeset
705 #endif], [
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
706 FTGLTextureFont font("");], [
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
707 OPENGL_LIBS="$OPENGL_LIBS $FT2_LIBS -lftgl"
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
708 LIBS="$save_LIBS"
8269
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
709 CPPFLAGS="$save_CPPFLAGS"
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
710 AC_DEFINE(HAVE_FTGL, 1, [Define to 1 if FTGL is present])
7874
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7863
diff changeset
711 AC_MSG_RESULT(yes)
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7863
diff changeset
712 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"],[
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
713 AC_MSG_RESULT(no)
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
714 warn_ftgl="FTGL library not found. Native renderer will not have on-screen text"
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
715 ])
7887
627b10572d82 configure.in: fix invalid placement of variables restoration statements
Jaroslav Hajek <highegg@gmail.com>
parents: 7874
diff changeset
716 LIBS="$save_LIBS"
627b10572d82 configure.in: fix invalid placement of variables restoration statements
Jaroslav Hajek <highegg@gmail.com>
parents: 7874
diff changeset
717 CXXFLAGS="$save_CXXFLAGS"
8269
37afdd1d1bf8 Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents: 8256
diff changeset
718 CPPFLAGS="$save_CPPFLAGS"
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
719 else
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
720 warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text"
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
721 fi
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
722 AC_LANG_POP(C++)
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
723 fi
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
724 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
725
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
726 GRAPHICS_LIBS=
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
727 GRAPHICS_CFLAGS=
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
728
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
729 ## fltk (www.fltk.org)
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
730 AC_ARG_WITH(fltk-prefix,
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
731 [ --with-fltk-prefix=PFX Prefix where FLTK is installed (optional)],
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
732 fltk_prefix="$withval",
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
733 fltk_prefix="")
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
734 AC_ARG_WITH(fltk-exec-prefix,
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
735 [ --with-fltk-exec-prefix=PFX Exec prefix where FLTK is installed (optional)],
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
736 fltk_exec_prefix="$withval",
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
737 fltk_exec_prefix="")
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
738
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
739 if test -n "$fltk_exec_prefix"; then
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
740 fltk_args="$fltk_args --exec-prefix=$fltk_exec_prefix"
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
741 if test "x${FLTK_CONFIG+set}" != xset ; then
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
742 FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config"
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
743 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
744 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
745
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
746 if test -n "$fltk_prefix"; then
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
747 fltk_args="$fltk_args --prefix=$fltk_prefix"
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
748 if test x${FLTK_CONFIG+set} != xset ; then
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
749 FLTK_CONFIG="$fltk_prefix/bin/fltk-config"
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
750 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
751 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
752
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
753 AC_PATH_PROG(FLTK_CONFIG, fltk-config, no)
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
754
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
755 warn_fltk_config=""
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
756 warn_fltk_opengl=""
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
757
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
758 if test "$FLTK_CONFIG" = "no" ; then
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
759 warn_fltk_config="FLTK config script not found. Native graphics will be disabled."
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
760 else
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
761 FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`"
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
762 FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`"
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
763
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
764 AC_MSG_CHECKING(for OpenGL support in FLTK)
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
765 cat > conftest.cc <<EOF
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
766 #include <FL/gl.h>
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
767 int nothing=0;
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
768 EOF
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
769 $CXX $CXXFLAGS $FLTK_CFLAGS -c conftest.cc || \
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
770 warn_fltk_opengl="FLTK does not have OpenGL support. Native graphics will be disabled."
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
771
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
772 if test -z "$warn_fltk_opengl"; then
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
773 AC_MSG_RESULT(yes)
7954
3ffc34caec65 configure fixes
John W. Eaton <jwe@octave.org>
parents: 7953
diff changeset
774 AC_DEFINE(HAVE_FLTK, 1, [Define if FLTK is available])
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
775 GRAPHICS_CFLAGS="$FLTK_CFLAGS"
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
776 GRAPHICS_LIBS="$FLTK_LDFLAGS"
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
777 else
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
778 AC_MSG_RESULT(no)
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
779 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
780 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
781
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
782 AC_SUBST(GRAPHICS_CFLAGS)
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
783 AC_SUBST(GRAPHICS_LIBS)
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
784
4853
66b3cce2bf37 [project @ 2004-04-06 18:11:52 by jwe]
jwe
parents: 4850
diff changeset
785 OCTAVE_IEEE754_DATA_FORMAT
4850
8cc4818a0de0 [project @ 2004-04-06 17:06:34 by jwe]
jwe
parents: 4843
diff changeset
786
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
787 # ----------------------------------------------------------------------
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
788
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
789 OCTAVE_PROG_AR
3012
0ea30e0e86cc [project @ 1997-06-02 18:57:07 by jwe]
jwe
parents: 3008
diff changeset
790
0ea30e0e86cc [project @ 1997-06-02 18:57:07 by jwe]
jwe
parents: 3008
diff changeset
791 AC_PROG_RANLIB
0ea30e0e86cc [project @ 1997-06-02 18:57:07 by jwe]
jwe
parents: 3008
diff changeset
792
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
793 ## Default FFLAGS is -O.
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
794 if test "x$FFLAGS" = x; then
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
795 FFLAGS="-O"
1233
be470fb54633 [project @ 1995-04-10 05:20:52 by jwe]
jwe
parents: 1225
diff changeset
796 fi
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
797
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
798 ## the F77 variable, if set, overrides AC_PROG_F77 automatically
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
799 AC_PROG_F77
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
800 AC_F77_LIBRARY_LDFLAGS
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
801 AC_F77_DUMMY_MAIN
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
802 AC_F77_WRAPPERS
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
803
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
804 F77_TOLOWER=true
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
805 F77_APPEND_UNDERSCORE=true
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
806 F77_APPEND_EXTRA_UNDERSCORE=true
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
807
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
808 case "$ac_cv_f77_mangling" in
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
809 "upper case") F77_TOLOWER=false ;;
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
810 esac
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
811 case "$ac_cv_f77_mangling" in
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
812 "no underscore") F77_APPEND_UNDERSCORE=false ;;
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
813 esac
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
814 case "$ac_cv_f77_mangling" in
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
815 "no extra underscore") F77_APPEND_EXTRA_UNDERSCORE=false ;;
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
816 esac
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
817
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
818 case "$canonical_host_type" in
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
819 i[[3456789]]86-*-*)
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
820 if test "$ac_cv_f77_compiler_gnu" = yes; then
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
821 OCTAVE_F77_FLAG(-mieee-fp)
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
822 ### OCTAVE_F77_FLAG(-ffloat-store)
1239
cb032139cb9f [project @ 1995-04-10 18:37:05 by jwe]
jwe
parents: 1237
diff changeset
823 fi
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
824 ;;
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
825 alpha*-*-*)
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
826 if test "$ac_cv_f77_compiler_gnu" = yes; then
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
827 OCTAVE_F77_FLAG(-mieee)
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
828 else
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
829 OCTAVE_F77_FLAG(-ieee)
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
830 OCTAVE_F77_FLAG(-fpe1)
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
831 fi
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
832 ;;
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
833 powerpc-apple-machten*)
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
834 FFLAGS=
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
835 ;;
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
836 esac
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
837
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
838 if test -n "$FFLAGS"; then
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
839 AC_MSG_NOTICE([defining FFLAGS to be $FFLAGS])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
840 fi
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
841
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
842 AC_SUBST(F77_TOLOWER)
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
843 AC_SUBST(F77_APPEND_UNDERSCORE)
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
844 AC_SUBST(F77_APPEND_EXTRA_UNDERSCORE)
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
845
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
846 if test -z "$F77"; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
847 AC_MSG_WARN([in order to build octave, you must have a compatible])
7063
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
848 AC_MSG_WARN([Fortran compiler or wrapper script for f2c that functions])
58102cc15ddf [project @ 2007-10-24 20:35:19 by jwe]
jwe
parents: 7061
diff changeset
849 AC_MSG_WARN([as a Fortran compiler installed and in your path.])
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
850 AC_MSG_ERROR([See the file INSTALL for more information.])
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
851 fi
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
852
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
853 XTRA_CRUFT_SH_LDFLAGS=
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
854 case "$canonical_host_type" in
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
855 *-*-msdosmsvc)
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
856 FLIBS="$FLIBS -lkernel32"
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
857 XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def"
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
858 ;;
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
859 esac
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
860 AC_SUBST(XTRA_CRUFT_SH_LDFLAGS)
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
861
1163
f963aa9821b5 [project @ 1995-03-01 03:24:33 by jwe]
jwe
parents: 1152
diff changeset
862 FC=$F77
f963aa9821b5 [project @ 1995-03-01 03:24:33 by jwe]
jwe
parents: 1152
diff changeset
863 AC_SUBST(FC)
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
864
5498
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5496
diff changeset
865 OCTAVE_F77_FLAG(-ffloat-store, [
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5496
diff changeset
866 AC_MSG_RESULT([setting F77_FLOAT_STORE_FLAG to -ffloat-store])
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5496
diff changeset
867 F77_FLOAT_STORE_FLAG=-ffloat-store
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5496
diff changeset
868 AC_SUBST(F77_FLOAT_STORE_FLAG)
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5496
diff changeset
869 ])
3b3e8b7f0800 [project @ 2005-10-17 15:31:06 by jwe]
jwe
parents: 5496
diff changeset
870
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
871 ### Checks for BLAS and LAPACK libraries:
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
872 # (Build subdirectories of libcruft if they aren't found on the system.)
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
873 sinclude(acx_blas.m4)
7683
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
874 sinclude(acx_blas_f77_func.m4)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
875 sinclude(acx_lapack.m4)
7683
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
876 ACX_BLAS_WITH_F77_FUNC([], [BLAS_DIR="blas"])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
877 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"])
3690
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3688
diff changeset
878 AC_SUBST(BLAS_DIR)
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3688
diff changeset
879 AC_SUBST(LAPACK_DIR)
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3688
diff changeset
880
7683
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
881 if test "x$acx_blas_f77_func_ok" = "xno"; then
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
882 warn_blas_f77_incompatible="A BLAS library was detected but found incompatible with your Fortran 77 compiler. The reference BLAS implementation will be used. To improve performance, consider using a different Fortran compiler or a switch like -ff2c to make your Fortran compiler use a calling convention compatible with the way your BLAS library was compiled, or use a different BLAS library."
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
883 AC_MSG_WARN($warn_blas_f77_incompatible)
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
884 fi
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
885
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
886 QRUPDATE_LIBS=
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
887 AC_SUBST(QRUPDATE_LIBS)
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
888
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
889 # Check for the qrupdate library
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
890 AC_ARG_WITH(qrupdate,
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
891 [AS_HELP_STRING([--without-qrupdate],
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
892 [don't use qrupdate, disable QR & Cholesky updating functions])],
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
893 with_qrupdate=$withval, with_qrupdate=yes)
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
894
8562
a6edd5c23cb5 use replacement methods if qrupdate is not available
Jaroslav Hajek <highegg@gmail.com>
parents: 8560
diff changeset
895 warn_qrupdate="qrupdate not found. The QR & Cholesky updating functions will be slow."
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
896 if test "$with_qrupdate" = yes; then
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
897 with_qrupdate=no
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
898 if $have_fortran_compiler; then
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
899 AC_F77_FUNC(sqr1up)
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
900 elif $have_f2c; then
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
901 sqr1up=sqr1up_
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
902 fi
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
903 AC_CHECK_LIB(qrupdate, $sqr1up,
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
904 [QRUPDATE_LIBS="-lqrupdate"; with_qrupdate=yes], [], [$BLAS_LIBS $FLIBS])
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
905 if test "$with_qrupdate" = yes; then
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
906 AC_DEFINE(HAVE_QRUPDATE, 1, [Define if the qrupdate library is used.])
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
907 warn_qrupdate=
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
908 fi
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
909 fi
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
910 if test -n "$warn_qrupdate"; then
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
911 AC_MSG_WARN($warn_qrupdate)
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
912 fi
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
913
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
914 # Check for AMD library
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
915 AMD_LIBS=
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
916 AC_SUBST(AMD_LIBS)
7619
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
917
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
918 AC_ARG_WITH(amd,
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
919 [AS_HELP_STRING([--without-amd],
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
920 [don't use AMD, disable some sparse functionality])],
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
921 with_amd=$withval, with_amd=yes)
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
922
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
923 warn_amd="AMD not found. This will result in some lack of functionality for sparse matrices."
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
924 if test "$with_amd" = yes; then
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
925 with_amd=no
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
926 AC_CHECK_HEADERS([suitesparse/amd.h ufsparse/amd.h amd/amd.h amd.h], [
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
927 AC_CHECK_LIB(amd, amd_postorder, [AMD_LIBS="-lamd"; with_amd=yes])
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
928 if test "$with_amd" = yes; then
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
929 AC_DEFINE(HAVE_AMD, 1, [Define if the AMD library is used.])
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
930 warn_amd=
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
931 fi
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
932 break])
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
933 fi
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
934 if test -n "$warn_amd"; then
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
935 AC_MSG_WARN($warn_amd)
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
936 fi
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
937
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
938 # Check for CAMD library
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
939 CAMD_LIBS=
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
940 AC_SUBST(CAMD_LIBS)
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
941 AC_CHECK_LIB(camd, camd_postorder, [CAMD_LIBS="-lcamd"; with_camd=yes],[with_camd=no])
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
942
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
943 # Check for UMFPACK library.
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
944
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
945 UMFPACK_LIBS=
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
946 AC_SUBST(UMFPACK_LIBS)
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
947
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
948 AC_ARG_WITH(umfpack,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
949 [AS_HELP_STRING([--without-umfpack],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
950 [don't use UMFPACK, disable some sparse functionality])],
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
951 with_umfpack=$withval, with_umfpack=yes)
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
952
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
953 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices."
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
954 if test "$with_umfpack" = yes && test "$with_amd" = yes; then
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
955 with_umfpack=no
6232
900d4394e7d8 [project @ 2007-01-08 19:54:08 by dbateman]
dbateman
parents: 6201
diff changeset
956 AC_CHECK_HEADERS([suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h], [
5512
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
957 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
958 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
959 ## Invalidate the cache.
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
960 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
961 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
962 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
963
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
964 ## Invalidate the cache.
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
965 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
966 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [
5512
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
967 UMFPACK_LIBS="-lumfpack -lcblas"; with_umfpack=yes], [], $AMD_LIBS -lcblas $BLAS_LIBS)], $AMD_LIBS $BLAS_LIBS $FLIBS)], $AMD_LIBS)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
968
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
969 if test "$with_umfpack" = yes; then
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
970 AC_DEFINE(HAVE_UMFPACK, 1, [Define if the UMFPACK library is used.])
5505
17682e3fba2a [project @ 2005-10-21 12:30:29 by jwe]
jwe
parents: 5498
diff changeset
971 OLD_LIBS=$LIBS
17682e3fba2a [project @ 2005-10-21 12:30:29 by jwe]
jwe
parents: 5498
diff changeset
972 LIBS="$LIBS $UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS"
17682e3fba2a [project @ 2005-10-21 12:30:29 by jwe]
jwe
parents: 5498
diff changeset
973 OCTAVE_UMFPACK_SEPERATE_SPLIT
17682e3fba2a [project @ 2005-10-21 12:30:29 by jwe]
jwe
parents: 5498
diff changeset
974 LIBS=$OLD_LIBS
5648
69a4f320d95a [project @ 2006-03-08 20:17:37 by dbateman]
dbateman
parents: 5613
diff changeset
975 TEXINFO_UMFPACK="@set HAVE_UMFPACK"
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
976 warn_umfpack=
5512
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
977 fi
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
978 break])
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
979 fi
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
980 if test -n "$warn_umfpack"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
981 AC_MSG_WARN($warn_umfpack)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
982 fi
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
983
5648
69a4f320d95a [project @ 2006-03-08 20:17:37 by dbateman]
dbateman
parents: 5613
diff changeset
984 AC_SUBST(TEXINFO_UMFPACK)
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
985
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
986 COLAMD_LIBS=
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
987 AC_SUBST(COLAMD_LIBS)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
988
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
989 AC_ARG_WITH(colamd,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
990 [AS_HELP_STRING([--without-colamd],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
991 [don't use COLAMD, disable some sparse functionality])],
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
992 with_colamd=$withval, with_colamd=yes)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
993
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
994 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices."
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
995 if test "$with_colamd" = yes; then
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
996 with_colamd=no
6232
900d4394e7d8 [project @ 2007-01-08 19:54:08 by dbateman]
dbateman
parents: 6201
diff changeset
997 AC_CHECK_HEADERS([suitesparse/colamd.h ufsparse/colamd.h colamd/colamd.h colamd.h], [
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
998 AC_CHECK_LIB(colamd, colamd, [COLAMD_LIBS="-lcolamd"; with_colamd=yes])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
999 if test "$with_colamd" = yes; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1000 AC_DEFINE(HAVE_COLAMD, 1, [Define if the COLAMD library is used.])
5648
69a4f320d95a [project @ 2006-03-08 20:17:37 by dbateman]
dbateman
parents: 5613
diff changeset
1001 TEXINFO_COLAMD="@set HAVE_COLAMD"
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1002 warn_colamd=
5512
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
1003 fi
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1004 break])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1005 fi
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1006 if test -n "$warn_colamd"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1007 AC_MSG_WARN($warn_colamd)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1008 fi
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1009
5648
69a4f320d95a [project @ 2006-03-08 20:17:37 by dbateman]
dbateman
parents: 5613
diff changeset
1010 AC_SUBST(TEXINFO_COLAMD)
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1011
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1012 CCOLAMD_LIBS=
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1013 AC_SUBST(CCOLAMD_LIBS)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1014
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1015 AC_ARG_WITH(ccolamd,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1016 [AS_HELP_STRING([--without-ccolamd],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1017 [don't use CCOLAMD, disable some sparse functionality])],
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1018 with_ccolamd=$withval, with_ccolamd=yes)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1019
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
1020 warn_ccolamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices."
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1021 if test "$with_ccolamd" = yes; then
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1022 with_ccolamd=no
6232
900d4394e7d8 [project @ 2007-01-08 19:54:08 by dbateman]
dbateman
parents: 6201
diff changeset
1023 AC_CHECK_HEADERS([suitesparse/ccolamd.h ufsparse/ccolamd.h ccolamd/ccolamd.h ccolamd.h], [
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1024 AC_CHECK_LIB(ccolamd, ccolamd, [CCOLAMD_LIBS="-lccolamd"; with_ccolamd=yes])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1025 if test "$with_ccolamd" = yes; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1026 AC_DEFINE(HAVE_CCOLAMD, 1, [Define if the CCOLAMD library is used.])
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1027 warn_ccolamd=
5512
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
1028 fi
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1029 break])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1030 fi
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1031 if test -n "$warn_ccolamd"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1032 AC_MSG_WARN($warn_ccolamd)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1033 fi
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1034
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1035 CHOLMOD_LIBS=
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1036 AC_SUBST(CHOLMOD_LIBS)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1037
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1038 AC_ARG_WITH(cholmod,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1039 [AS_HELP_STRING([--without-cholmod],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1040 [don't use CHOLMOD, disable some sparse functionality])],
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1041 with_cholmod=$withval, with_cholmod=yes)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1042
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
1043 warn_cholmod="CHOLMOD not found. This will result in some lack of functionality for sparse matrices."
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1044 if test "$with_cholmod" = yes && test "$with_colamd" = yes &&
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1045 test "$with_ccolamd" = yes && test "$with_amd" = yes; then
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1046 with_cholmod=no
6232
900d4394e7d8 [project @ 2007-01-08 19:54:08 by dbateman]
dbateman
parents: 6201
diff changeset
1047 AC_CHECK_HEADERS([suitesparse/cholmod.h ufsparse/cholmod.h cholmod/cholmod.h cholmod.h], [
7036
daff886a8e2a [project @ 2007-10-17 19:02:10 by jwe]
jwe
parents: 7017
diff changeset
1048 AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod";
daff886a8e2a [project @ 2007-10-17 19:02:10 by jwe]
jwe
parents: 7017
diff changeset
1049 with_cholmod=yes], [
daff886a8e2a [project @ 2007-10-17 19:02:10 by jwe]
jwe
parents: 7017
diff changeset
1050 AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod -cblas";
daff886a8e2a [project @ 2007-10-17 19:02:10 by jwe]
jwe
parents: 7017
diff changeset
1051 with_cholmod=yes], [],
daff886a8e2a [project @ 2007-10-17 19:02:10 by jwe]
jwe
parents: 7017
diff changeset
1052 $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS)],
daff886a8e2a [project @ 2007-10-17 19:02:10 by jwe]
jwe
parents: 7017
diff changeset
1053 $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1054
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1055 if test "$with_cholmod" = yes; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1056 AC_DEFINE(HAVE_CHOLMOD, 1, [Define if the CHOLMOD library is used.])
5648
69a4f320d95a [project @ 2006-03-08 20:17:37 by dbateman]
dbateman
parents: 5613
diff changeset
1057 TEXINFO_CHOLMOD="@set HAVE_CHOLMOD"
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1058 warn_cholmod=
5512
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
1059 fi
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1060 break])
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1061 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1062 if test -n "$warn_cholmod"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1063 AC_MSG_WARN($warn_cholmod)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1064 fi
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
1065
5648
69a4f320d95a [project @ 2006-03-08 20:17:37 by dbateman]
dbateman
parents: 5613
diff changeset
1066 AC_SUBST(TEXINFO_CHOLMOD)
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1067
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1068 CXSPARSE_LIBS=
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1069 AC_SUBST(CXSPARSE_LIBS)
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1070
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1071 AC_ARG_WITH(cxsparse,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1072 [AS_HELP_STRING([--without-cxsparse],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1073 [don't use CXSparse, disable some sparse functionality])],
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1074 with_cxsparse=$withval, with_cxsparse=yes)
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1075
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
1076 warn_cxsparse="CXSparse not found. This will result in some lack of functionality for sparse matrices."
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1077 if test "$with_cxsparse" = yes; then
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1078 with_cxsparse=no
6719
30e1320bb0ee [project @ 2007-06-13 22:22:51 by dbateman]
dbateman
parents: 6718
diff changeset
1079 AC_LANG_PUSH(C++)
6232
900d4394e7d8 [project @ 2007-01-08 19:54:08 by dbateman]
dbateman
parents: 6201
diff changeset
1080 AC_CHECK_HEADERS([suitesparse/cs.h ufsparse/cs.h cxsparse/cs.h cs.h], [
5648
69a4f320d95a [project @ 2006-03-08 20:17:37 by dbateman]
dbateman
parents: 5613
diff changeset
1081 AC_CHECK_LIB(cxsparse, cs_di_sqr, [CXSPARSE_LIBS="-lcxsparse"; with_cxsparse=yes])
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1082 if test "$with_cxsparse" = yes; then
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1083 AC_DEFINE(HAVE_CXSPARSE, 1, [Define if the CXSparse library is used.])
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1084 warn_cxsparse=
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1085 fi
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1086 break])
6719
30e1320bb0ee [project @ 2007-06-13 22:22:51 by dbateman]
dbateman
parents: 6718
diff changeset
1087 AC_LANG_POP(C++)
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1088 fi
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1089 if test -n "$warn_cxsparse"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1090 AC_MSG_WARN($warn_cxsparse)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1091 fi
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
1092
8417
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1093 ARPACK_LIBS=
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1094 AC_SUBST(ARPACK_LIBS)
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1095
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1096 AC_ARG_WITH(arpack,
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1097 [AS_HELP_STRING([--without-arpack],
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1098 [don't use ARPACK, disable some sparse functionality])],
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1099 with_arpack=$withval, with_arpack=yes)
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1100
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1101 warn_arpack="arpack not found. This will result in a lack of the eigs function."
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1102 if test "$with_arpack" = yes; then
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1103 with_arpack=no
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1104 AC_CHECK_LIB(arpack, F77_FUNC(dseupd,DSEUPD), [ARPACK_LIBS="-larpack"; with_arpack=yes], , $LAPACK_LIBS $FLIBS)
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1105 if test "$with_arpack" = yes; then
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1106 AC_DEFINE(HAVE_ARPACK, 1, [Define if the ARPACK library is used.])
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1107 warn_arpack=
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1108 fi
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1109 fi
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1110 if test -n "$warn_arpack"; then
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1111 AC_MSG_WARN($warn_arpack)
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1112 fi
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
1113
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1114 ### Handle shared library options.
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1115
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1116 ### Enable creation of static libraries.
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1117
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1118 AC_ARG_ENABLE(static,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1119 [AS_HELP_STRING([--enable-static], [create static libraries])],
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1120 [if test "$enableval" = no; then STATIC_LIBS=false;
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1121 else STATIC_LIBS=true; fi],
5221
843ac57f254a [project @ 2005-03-17 04:53:06 by jwe]
jwe
parents: 5203
diff changeset
1122 STATIC_LIBS=false)
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1123 AC_SUBST(STATIC_LIBS)
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1124
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1125 ### Enable creation of shared libraries. Currently only works with
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1126 ### gcc on some systems.
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1127
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1128 AC_ARG_ENABLE(shared,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1129 [AS_HELP_STRING([--enable-shared],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1130 [create shared libraries (not all systems)])],
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1131 [if test "$enableval" = no; then SHARED_LIBS=false;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1132 else SHARED_LIBS=true; fi],
5221
843ac57f254a [project @ 2005-03-17 04:53:06 by jwe]
jwe
parents: 5203
diff changeset
1133 SHARED_LIBS=true)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1134 AC_SUBST(SHARED_LIBS)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1135
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1136 ### Enable dynamic linking. --enable-shared implies this, so
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1137 ### --enable-dl is only need if you are only building static libraries
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1138 ### and want to try dynamic linking too (works on some systems, for
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1139 ### example, OS X and Windows).
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1140
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1141 AC_ARG_ENABLE(dl,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1142 [AS_HELP_STRING([--enable-dl],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1143 [create shared libraries (not all systems)])],
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1144 [if test "$enableval" = no; then ENABLE_DYNAMIC_LINKING=false;
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1145 else ENABLE_DYNAMIC_LINKING=true; fi],
5221
843ac57f254a [project @ 2005-03-17 04:53:06 by jwe]
jwe
parents: 5203
diff changeset
1146 ENABLE_DYNAMIC_LINKING=true)
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1147
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1148 if $STATIC_LIBS || $SHARED_LIBS; then
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1149 true
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1150 else
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1151 AC_MSG_ERROR([You can't disable building static AND shared libraries!])
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1152 fi
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1153
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1154 AC_ARG_ENABLE(rpath,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1155 [AS_HELP_STRING([--enable-rpath],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1156 [override the default link options for rpath; e.g., --enable-rpath='-rpath $(octlibdir)'])],
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1157 [ if test "$enableval" = no; then use_rpath=false;
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1158 else
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1159 use_rpath=true
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1160 if test "$enableval" = yes; then true;
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1161 else enable_rpath_arg="$enableval"; fi
4439
64a91c8251e2 [project @ 2003-06-27 19:13:37 by jwe]
jwe
parents: 4417
diff changeset
1162 fi], [use_rpath=true])
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1163
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1164 CPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1165 CXXPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1166 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1167 SHLEXT=so
4190
bc0edad7dda7 [project @ 2002-11-19 23:14:51 by jwe]
jwe
parents: 4189
diff changeset
1168 SHLLIB='$(SHLEXT)'
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1169 SHLBIN=
4138
b38835ea3c6e [project @ 2002-10-31 16:18:51 by jwe]
jwe
parents: 4128
diff changeset
1170 SHLEXT_VER='$(SHLEXT).$(version)'
b38835ea3c6e [project @ 2002-10-31 16:18:51 by jwe]
jwe
parents: 4128
diff changeset
1171 SHLLIB_VER='$(SHLLIB).$(version)'
b38835ea3c6e [project @ 2002-10-31 16:18:51 by jwe]
jwe
parents: 4128
diff changeset
1172 SHLBIN_VER='$(SHLBIN).$(version)'
4126
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1173 SHLLINKEXT=
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1174 LIBPRE=lib
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1175 SHLLIBPRE=lib
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1176 SHLBINPRE=lib
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1177 SH_LD='$(CXX)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1178 SH_LDFLAGS=-shared
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1179 DL_LD='$(SH_LD)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1180 DL_LDFLAGS='$(SH_LDFLAGS)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1181 MKOCTFILE_DL_LDFLAGS='$(DL_LDFLAGS)'
3036
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
1182 SONAME_FLAGS=
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1183 RLD_FLAG=
4199
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4196
diff changeset
1184 NO_OCT_FILE_STRIP=false
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1185 TEMPLATE_AR='$(AR)'
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1186 TEMPLATE_ARFLAGS="$ARFLAGS"
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1187 CRUFT_DLL_DEFS=
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1188 OCTAVE_DLL_DEFS=
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1189 OCTINTERP_DLL_DEFS=
7825
13871b7de124 Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 7789
diff changeset
1190 OCTGRAPHICS_DLL_DEFS=
4104
fef735180134 [project @ 2002-10-15 20:28:20 by jwe]
jwe
parents: 4103
diff changeset
1191 library_path_var=LD_LIBRARY_PATH
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1192 case "$canonical_host_type" in
6668
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1193 *-*-386bsd* | *-*-netbsd*)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1194 SH_LD=ld
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1195 SH_LDFLAGS=-Bshareable
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1196 ;;
6668
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1197 *-*-openbsd*)
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1198 SH_LDFLAGS='-shared -fPIC'
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1199 ;;
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1200 *-*-freebsd*)
5508
7865515fc6c2 [project @ 2005-10-26 15:24:07 by jwe]
jwe
parents: 5506
diff changeset
1201 SH_LDFLAGS="-shared -Wl,-x"
7865515fc6c2 [project @ 2005-10-26 15:24:07 by jwe]
jwe
parents: 5506
diff changeset
1202 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)'
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1203 ;;
3127
d6ebd123170a [project @ 1998-01-16 05:59:35 by jwe]
jwe
parents: 3126
diff changeset
1204 alpha*-dec-osf*)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1205 CPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1206 CXXPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1207 FPICFLAG=
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1208 SH_LDFLAGS="-shared -Wl,-expect_unresolved -Wl,'*'"
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1209 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1210 ;;
3956
8a5596d6f7c4 [project @ 2002-05-24 05:29:57 by jwe]
jwe
parents: 3923
diff changeset
1211 *-*-darwin*)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1212 DL_LDFLAGS='-bundle -bundle_loader $(TOPDIR)/src/octave $(LDFLAGS)'
6682
1e440ccda1ca [project @ 2007-06-01 19:34:56 by jwe]
jwe
parents: 6668
diff changeset
1213 MKOCTFILE_DL_LDFLAGS='-bundle -bundle_loader $$BINDIR/octave-$$OCTAVE_VERSION$$EXEEXT'
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1214 SH_LDFLAGS='-dynamiclib -single_module $(LDFLAGS)'
7266
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1215 case "$canonical_host_type" in
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1216 powerpc-*)
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1217 CXXPICFLAG=
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1218 CPICFLAG=
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1219 FPICFLAG=
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1220 ;;
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1221 esac
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1222 SHLEXT=dylib
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1223 SHLLIB='$(SHLEXT)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1224 SHLEXT_VER='$(version).$(SHLEXT)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1225 SHLLIB_VER='$(version).$(SHLLIB)'
4199
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4196
diff changeset
1226 NO_OCT_FILE_STRIP=true
4786
fc316bde0053 [project @ 2004-02-18 12:52:20 by jwe]
jwe
parents: 4773
diff changeset
1227 SONAME_FLAGS='-install_name $(octlibdir)/$@'
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1228 library_path_var=DYLD_LIBRARY_PATH
3956
8a5596d6f7c4 [project @ 2002-05-24 05:29:57 by jwe]
jwe
parents: 3923
diff changeset
1229 ;;
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1230 *-*-mingw* | *-*-cygwin*)
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1231 case "$canonical_host_type" in
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1232 *-*-cygwin*)
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1233 LIBPRE=cyg
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1234 SHLLIBPRE=lib
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1235 SHLBINPRE=cyg
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1236 ;;
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1237 esac
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1238 DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc"
5414
98173cfac509 [project @ 2005-07-14 18:54:43 by jwe]
jwe
parents: 5389
diff changeset
1239 SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base"
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1240 SONAME_FLAGS='-Wl,--out-implib=$(SHLLIBPRE)$(basename $@)$(SHLLIB)'
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1241 ;;
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1242
6089
9f9313969599 [project @ 2006-10-25 21:00:07 by jwe]
jwe
parents: 6087
diff changeset
1243 *-*-msdosmsvc)
6794
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1244 DL_LDFLAGS="-shared"
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1245 CPICFLAG=
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1246 CXXPICFLAG=
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1247 FPICFLAG=
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1248 SHLEXT=dll
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1249 SHLLIB=lib
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1250 SHLBIN=dll
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1251 LIBPRE=
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1252 SHLLIBPRE=
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1253 SHLBINPRE=
6794
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1254 SH_LDFLAGS="-shared"
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1255 if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1256 DL_LDFLAGS="$DL_LDFLAGS -g"
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1257 SH_LDFLAGS="$SH_LDFLAGS -g"
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1258 fi
6255
c97a1cdea9e7 [project @ 2007-01-29 21:15:28 by jwe]
jwe
parents: 6232
diff changeset
1259 NO_OCT_FILE_STRIP=true
6100
8137e2bbd1dd [project @ 2006-10-26 16:01:45 by jwe]
jwe
parents: 6098
diff changeset
1260 library_path_var=PATH
6718
509469a21cde [project @ 2007-06-13 21:16:59 by jwe]
jwe
parents: 6704
diff changeset
1261 NO_OCT_FILE_STRIP=true
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
1262 ## Extra compilation flags.
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1263 CRUFT_DLL_DEFS="-DCRUFT_DLL"
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1264 OCTAVE_DLL_DEFS="-DOCTAVE_DLL"
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1265 OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL"
7825
13871b7de124 Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 7789
diff changeset
1266 OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL"
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1267 ;;
3740
0228f57f88c3 [project @ 2000-11-28 02:51:22 by jwe]
jwe
parents: 3729
diff changeset
1268 *-*-linux* | *-*-gnu*)
4906
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4877
diff changeset
1269 MKOCTFILE_DL_LDFLAGS="-shared -Wl,-Bsymbolic"
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1270 SONAME_FLAGS='-Wl,-soname -Wl,$@'
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1271 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1272 ;;
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1273 i[[3456]]86-*-sco3.2v5*)
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1274 SONAME_FLAGS='-Wl,-h -Wl,$@'
3705
7e90f4e9a4d5 [project @ 2000-07-22 01:57:25 by jwe]
jwe
parents: 3697
diff changeset
1275 RLD_FLAG=
3160
4696773a14b1 [project @ 1998-03-02 06:18:12 by jwe]
jwe
parents: 3157
diff changeset
1276 SH_LDFLAGS=-G
4696773a14b1 [project @ 1998-03-02 06:18:12 by jwe]
jwe
parents: 3157
diff changeset
1277 ;;
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1278 rs6000-ibm-aix* | powerpc-ibm-aix*)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1279 CPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1280 CXXPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1281 FPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1282 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1283 hppa*-hp-hpux*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1284 if test "$ac_cv_f77_compiler_gnu" = yes; then
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1285 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1286 else
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1287 FPICFLAG=+Z
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1288 fi
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1289 SHLEXT=sl
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1290 SH_LDFLAGS="-shared -fPIC"
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1291 RLD_FLAG='-Wl,+b -Wl,$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1292 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1293 *-sgi-*)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1294 CPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1295 CXXPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1296 FPICFLAG=
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1297 RLD_FLAG='-rpath $(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1298 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1299 sparc-sun-sunos4*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1300 if test "$ac_cv_f77_compiler_gnu" = yes; then
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1301 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1302 else
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1303 FPICFLAG=-PIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1304 fi
3059
f2a34a28d9c5 [project @ 1997-06-20 20:25:29 by jwe]
jwe
parents: 3043
diff changeset
1305 SH_LD=ld
f2a34a28d9c5 [project @ 1997-06-20 20:25:29 by jwe]
jwe
parents: 3043
diff changeset
1306 SH_LDFLAGS="-assert nodefinitions"
3162
7c96e85c76db [project @ 1998-04-08 18:19:35 by jwe]
jwe
parents: 3161
diff changeset
1307 RLD_FLAG='-L$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1308 ;;
3606
89f958b5358f [project @ 2000-03-08 09:30:05 by jwe]
jwe
parents: 3597
diff changeset
1309 sparc-sun-solaris2* | i386-pc-solaris2*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1310 if test "$ac_cv_f77_compiler_gnu" = yes; then
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1311 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1312 else
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1313 FPICFLAG=-KPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1314 fi
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1315 if test "$GCC" = yes; then
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1316 CPICFLAG=-fPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1317 else
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1318 CPICFLAG=-KPIC
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1319 fi
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1320 if test "$GXX" = yes; then
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1321 CXXPICFLAG=-fPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1322 SH_LDFLAGS=-shared
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1323 else
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1324 CXXPICFLAG=-KPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1325 SH_LDFLAGS=-G
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1326 fi
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1327 RLD_FLAG='-R $(octlibdir)'
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
1328 ## Template closures in archive libraries need a different mechanism.
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
1329 if test "$GXX" = yes; then
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1330 true
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1331 else
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1332 TEMPLATE_AR='$(CXX)'
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1333 TEMPLATE_ARFLAGS="-xar -o"
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1334 fi
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1335 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1336 esac
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1337
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1338 if $use_rpath; then
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1339 if test -n "$enable_rpath_arg"; then
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1340 RLD_FLAG="$enable_rpath_arg"
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1341 fi
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1342 else
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1343 RLD_FLAG=""
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1344 fi
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1345
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1346 AC_MSG_NOTICE([defining FPICFLAG to be $FPICFLAG])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1347 AC_MSG_NOTICE([defining CPICFLAG to be $CPICFLAG])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1348 AC_MSG_NOTICE([defining CXXPICFLAG to be $CXXPICFLAG])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1349 AC_MSG_NOTICE([defining SHLEXT to be $SHLEXT])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1350 AC_MSG_NOTICE([defining SHLLIB to be $SHLLIB])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1351 AC_MSG_NOTICE([defining SHLBIN to be $SHLBIN])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1352 AC_MSG_NOTICE([defining SHLEXT_VER to be $SHLEXT_VER])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1353 AC_MSG_NOTICE([defining SHLLIB_VER to be $SHLLIB_VER])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1354 AC_MSG_NOTICE([defining SHLBIN_VER to be $SHLBIN_VER])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1355 AC_MSG_NOTICE([defining SHLLINKEXT to be $SHLLINKEXT])
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1356 AC_MSG_NOTICE([defining LIBPRE to be $LIBPRE])
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1357 AC_MSG_NOTICE([defining SHLLIBPRE to be $SHLLIBPRE])
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1358 AC_MSG_NOTICE([defining SHLBINPRE to be $SHLBINPRE])
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1359 AC_MSG_NOTICE([defining SH_LD to be $SH_LD])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1360 AC_MSG_NOTICE([defining SH_LDFLAGS to be $SH_LDFLAGS])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1361 AC_MSG_NOTICE([defining DL_LD to be $DL_LD])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1362 AC_MSG_NOTICE([defining DL_LDFLAGS to be $DL_LDFLAGS])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1363 AC_MSG_NOTICE([defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1364 AC_MSG_NOTICE([defining SONAME_FLAGS to be $SONAME_FLAGS])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1365 AC_MSG_NOTICE([defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1366 AC_MSG_NOTICE([defining RLD_FLAG to be $RLD_FLAG])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1367 AC_MSG_NOTICE([defining TEMPLATE_AR to be $TEMPLATE_AR])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1368 AC_MSG_NOTICE([defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS])
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1369 AC_MSG_NOTICE([defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS])
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1370 AC_MSG_NOTICE([defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS])
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1371 AC_MSG_NOTICE([defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS])
7825
13871b7de124 Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 7789
diff changeset
1372 AC_MSG_NOTICE([defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS])
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1373 AC_MSG_NOTICE([defining library_path_var to be $library_path_var])
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1374 AC_SUBST(FPICFLAG)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1375 AC_SUBST(CPICFLAG)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1376 AC_SUBST(CXXPICFLAG)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1377 AC_SUBST(SHLEXT)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1378 AC_SUBST(SHLLIB)
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1379 AC_SUBST(SHLBIN)
4126
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1380 AC_SUBST(SHLEXT_VER)
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1381 AC_SUBST(SHLLIB_VER)
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1382 AC_SUBST(SHLBIN_VER)
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1383 AC_SUBST(SHLLINKEXT)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1384 AC_SUBST(LIBPRE)
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1385 AC_SUBST(SHLLIBPRE)
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1386 AC_SUBST(SHLBINPRE)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1387 AC_SUBST(SH_LD)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1388 AC_SUBST(SH_LDFLAGS)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1389 AC_SUBST(DL_LD)
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1390 AC_SUBST(DL_LDFLAGS)
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1391 AC_SUBST(MKOCTFILE_DL_LDFLAGS)
3036
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
1392 AC_SUBST(SONAME_FLAGS)
4199
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4196
diff changeset
1393 AC_SUBST(NO_OCT_FILE_STRIP)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1394 AC_SUBST(RLD_FLAG)
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1395 AC_SUBST(TEMPLATE_AR)
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1396 AC_SUBST(TEMPLATE_ARFLAGS)
6141
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6137
diff changeset
1397 AC_SUBST(CRUFT_DLL_DEFS)
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6137
diff changeset
1398 AC_SUBST(OCTAVE_DLL_DEFS)
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6137
diff changeset
1399 AC_SUBST(OCTINTERP_DLL_DEFS)
7825
13871b7de124 Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 7789
diff changeset
1400 AC_SUBST(OCTGRAPHICS_DLL_DEFS)
4104
fef735180134 [project @ 2002-10-15 20:28:20 by jwe]
jwe
parents: 4103
diff changeset
1401 AC_SUBST(library_path_var)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1402
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1403 ### special checks for odd OS specific things.
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1404 ###
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1405 ### I am told that on some SCO systems, the only place to find some
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1406 ### functions like gethostname and gettimeofday is in libsocket.
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1407
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1408 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)])
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1409 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)])
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1410
4388
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1411 case "$canonical_host_type" in
6704
781777998927 [project @ 2007-06-13 05:23:56 by jwe]
jwe
parents: 6694
diff changeset
1412 *-*-cygwin*)
4388
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1413 AC_CHECK_LIB(wsock32, gethostname)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1414 LIBS="$LIBS -lwsock32"
4388
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1415 ;;
6704
781777998927 [project @ 2007-06-13 05:23:56 by jwe]
jwe
parents: 6694
diff changeset
1416 *-*-msdosmsvc* | *-*-mingw*)
6091
96a11041f52b [project @ 2006-10-25 21:25:04 by jwe]
jwe
parents: 6090
diff changeset
1417 LIBS="$LIBS -lws2_32 -lkernel32"
96a11041f52b [project @ 2006-10-25 21:25:04 by jwe]
jwe
parents: 6090
diff changeset
1418 ;;
4388
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1419 esac
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1420
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1421 ### Type stuff.
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1422
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1423 AC_TYPE_MODE_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1424 AC_TYPE_OFF_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1425 AC_TYPE_PID_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1426 AC_TYPE_SIZE_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1427 AC_TYPE_UID_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1428 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t])
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1429 AC_CHECK_TYPES([long long int, unsigned long long int])
7237
7e248dd1e6d5 [project @ 2007-12-03 19:52:47 by jwe]
jwe
parents: 7231
diff changeset
1430 AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [
7e248dd1e6d5 [project @ 2007-12-03 19:52:47 by jwe]
jwe
parents: 7231
diff changeset
1431 #if defined (HAVE_SYS_TYPES_H)
7e248dd1e6d5 [project @ 2007-12-03 19:52:47 by jwe]
jwe
parents: 7231
diff changeset
1432 #include <sys/types.h>
7e248dd1e6d5 [project @ 2007-12-03 19:52:47 by jwe]
jwe
parents: 7231
diff changeset
1433 #endif
7e248dd1e6d5 [project @ 2007-12-03 19:52:47 by jwe]
jwe
parents: 7231
diff changeset
1434 #include <signal.h>])
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1435
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1436 ### How big are ints and how are they oriented? These could probably
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1437 ### be eliminated in favor of run-time checks.
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1438
3888
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1439 AC_CHECK_SIZEOF(short)
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1440 AC_CHECK_SIZEOF(int)
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1441 AC_CHECK_SIZEOF(long)
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1442 AC_CHECK_SIZEOF(long long)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1443
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1444 ### Does the C compiler handle alloca() and const correctly?
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1445
4602
59e180c8cb61 [project @ 2003-11-12 18:36:24 by jwe]
jwe
parents: 4587
diff changeset
1446 AC_FUNC_ALLOCA
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1447 AC_C_CONST
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1448
4360
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1449 ### See if we should use placement delete.
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1450
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1451 OCTAVE_PLACEMENT_DELETE
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1452
4366
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1453 ### See if we can auto allocate variable sized arrays.
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1454
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1455 OCTAVE_DYNAMIC_AUTO_ARRAYS
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1456
8169
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1457 ### See if we can use fast integer arithmetics
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1458
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1459 OCTAVE_FAST_INT_OPS
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1460
8185
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1461 ### Check for long double type (for 64-bit integers)
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1462
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1463 AC_CHECK_SIZEOF(long double)
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1464
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1465 ### Checks for header files.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1466
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1467 AC_HEADER_STDC
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1468 AC_HEADER_DIRENT
1377
44f5d41ff757 [project @ 1995-09-12 00:07:58 by jwe]
jwe
parents: 1348
diff changeset
1469 AC_HEADER_TIME
44f5d41ff757 [project @ 1995-09-12 00:07:58 by jwe]
jwe
parents: 1348
diff changeset
1470 AC_HEADER_SYS_WAIT
2097
19ba1a7dcfbb [project @ 1996-04-28 10:40:15 by jwe]
jwe
parents: 2064
diff changeset
1471
4051
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1472 ### C headers
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1473
4067
e97fb79fc1d5 [project @ 2002-09-26 22:43:25 by jwe]
jwe
parents: 4066
diff changeset
1474 AC_CHECK_HEADERS(assert.h curses.h direct.h dlfcn.h fcntl.h float.h \
5990
d90d089a9d32 [project @ 2006-09-15 14:34:57 by jwe]
jwe
parents: 5934
diff changeset
1475 floatingpoint.h grp.h ieeefp.h inttypes.h limits.h locale.h memory.h nan.h \
7934
5a156ab94dd2 Add octave_mutex class
John W. Eaton <jwe@octave.org>
parents: 7926
diff changeset
1476 ncurses.h poll.h pthread.h pwd.h stdint.h stdlib.h string.h sunmath.h sys/ioctl.h \
3308
7ae1928ca623 [project @ 1999-10-21 08:57:11 by jwe]
jwe
parents: 3249
diff changeset
1477 sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \
6694
3d913ba36b75 [project @ 2007-06-06 06:08:25 by jwe]
jwe
parents: 6686
diff changeset
1478 sys/time.h sys/times.h sys/types.h sys/utsname.h sys/utime.h termcap.h \
3d913ba36b75 [project @ 2007-06-06 06:08:25 by jwe]
jwe
parents: 6686
diff changeset
1479 unistd.h utime.h varargs.h)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1480
4051
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1481 ### C++ headers
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1482
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1483 AC_LANG_PUSH(C++)
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1484 AC_CHECK_HEADERS(sstream)
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1485 AC_LANG_POP(C++)
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1486
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1487 have_termios_h=no
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1488 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes)
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1489 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no)
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1490 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1491 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1492 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no)
4067
e97fb79fc1d5 [project @ 2002-09-26 22:43:25 by jwe]
jwe
parents: 4066
diff changeset
1493 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no)
3249
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3238
diff changeset
1494
3225
7aae2c3636a7 [project @ 1998-12-04 23:20:12 by jwe]
jwe
parents: 3222
diff changeset
1495 ### I'm told that termios.h is broken on NeXT systems.
7aae2c3636a7 [project @ 1998-12-04 23:20:12 by jwe]
jwe
parents: 3222
diff changeset
1496
7aae2c3636a7 [project @ 1998-12-04 23:20:12 by jwe]
jwe
parents: 3222
diff changeset
1497 case "$canonical_host_type" in
7aae2c3636a7 [project @ 1998-12-04 23:20:12 by jwe]
jwe
parents: 3222
diff changeset
1498 *-*-nextstep*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1499 if test "$have_termios_h" = yes; then
3249
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3238
diff changeset
1500 AC_MSG_WARN([Ignoring termios.h on NeXT systems.])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1501 have_termios_h=no
3249
60866c521b92 [project @ 1999-07-13 03:44:16 by jwe]
jwe
parents: 3238
diff changeset
1502 fi
3225
7aae2c3636a7 [project @ 1998-12-04 23:20:12 by jwe]
jwe
parents: 3222
diff changeset
1503 ;;
7aae2c3636a7 [project @ 1998-12-04 23:20:12 by jwe]
jwe
parents: 3222
diff changeset
1504 esac
7aae2c3636a7 [project @ 1998-12-04 23:20:12 by jwe]
jwe
parents: 3222
diff changeset
1505
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1506 if test "$have_termios_h" = yes \
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1507 || test "$have_termio_h" = yes \
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1508 || test "$have_sgtty_h" = yes; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1509 true
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1510 else
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1511 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!])
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1512 fi
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1513
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1514 LIBGLOB=
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1515 AC_SUBST(LIBGLOB)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1516 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1517 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, [
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1518 AC_CHECK_LIB(glob, fnmatch, [have_fnmatch=yes; LIBGLOB=-lglob],
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1519 have_fnmatch=no)])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1520 AC_CHECK_FUNCS(glob, have_glob=yes, [
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1521 AC_CHECK_LIB(glob, glob, [have_glob=yes; LIBGLOB=-lglob],
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1522 have_glob=no)])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1523
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1524 if test "$have_fnmatch" != yes || test "$have_glob" != yes; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1525 AC_MSG_ERROR([You are required to have fnmatch and glob])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1526 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1527 else
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1528 AC_MSG_ERROR([You are required to have fnmatch.h and glob.h])
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1529 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1530
1788
b7de2fd2be6b [project @ 1996-01-24 20:47:58 by jwe]
jwe
parents: 1762
diff changeset
1531 ### Checks for functions and variables.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1532
7638
2df457529cfa implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents: 7636
diff changeset
1533 AC_CHECK_FUNCS(atexit basename bcopy bzero canonicalize_file_name \
8549
424ba638d8f1 [mq]: fstat
file-io.cc (Ffstat): new function
parents: 8547
diff changeset
1534 chmod dup2 endgrent endpwent execvp expm1 expm1f fcntl fork fstat getcwd \
7638
2df457529cfa implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents: 7636
diff changeset
1535 getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \
2df457529cfa implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents: 7636
diff changeset
1536 getppid getpwent getpwuid gettimeofday getuid getwd _kbhit kill \
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7683
diff changeset
1537 lgamma lgammaf lgamma_r lgammaf_r link localtime_r log1p log1pf lstat \
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7683
diff changeset
1538 memmove mkdir mkfifo mkstemp on_exit pipe poll putenv raise readlink \
8185
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1539 realpath rename resolvepath rindex rmdir round roundl select setgrent setlocale \
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7683
diff changeset
1540 setpwent setvbuf sigaction siglongjmp sigpending sigprocmask sigsuspend \
7638
2df457529cfa implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents: 7636
diff changeset
1541 snprintf stat strcasecmp strdup strerror stricmp strncasecmp \
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7683
diff changeset
1542 strnicmp strptime strsignal symlink tempnam tgamma tgammaf trunc umask \
6694
3d913ba36b75 [project @ 2007-06-06 06:08:25 by jwe]
jwe
parents: 6686
diff changeset
1543 uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \
6829
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
1544 _chmod _snprintf x_utime _utime32)
1300
4d86fe3f634e [project @ 1995-05-01 19:18:03 by jwe]
jwe
parents: 1265
diff changeset
1545
6094
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1546 case "$canonical_host_type" in
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1547 *-*-msdosmsvc)
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1548 ## The %T format specifier for strftime is reportedly broken,
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1549 ## so use our version. We could use an actual configure test
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1550 ## for this.
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1551 ;;
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1552 *)
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1553 AC_CHECK_FUNCS(strftime)
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1554 ;;
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1555 esac
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1556
7058
ad2aaf824128 [project @ 2007-10-24 06:15:39 by jwe]
jwe
parents: 7054
diff changeset
1557 OCTAVE_STRPTIME_BROKEN
1708
0d952cd2ea74 [project @ 1996-01-08 00:45:34 by jwe]
jwe
parents: 1679
diff changeset
1558 OCTAVE_SMART_PUTENV
0d952cd2ea74 [project @ 1996-01-08 00:45:34 by jwe]
jwe
parents: 1679
diff changeset
1559
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1560 case "$canonical_host_type" in
6704
781777998927 [project @ 2007-06-13 05:23:56 by jwe]
jwe
parents: 6694
diff changeset
1561 *-*-msdosmsvc | *-*-mingw*)
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1562 AC_MSG_CHECKING([for required _WIN32_WINNT])
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1563 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1564 #include <windows.h>
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1565 #if _WIN32_WINNT < 0x0403
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1566 #error "Wrong version"
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1567 #endif]], []),
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1568 AC_MSG_RESULT([none]), [
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1569 AC_DEFINE(_WIN32_WINNT, 0x0403, [Define to 0x0403 to access InitializeCriticalSectionAndSpinCount])
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1570 AC_MSG_RESULT([0x0403])])
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1571 AC_MSG_CHECKING([whether _USE_MATH_DEFINES needs to be defined])
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1572 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <math.h>]],
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1573 [[int x = M_LN2;]]),
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1574 AC_MSG_RESULT([no]), [
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1575 AC_DEFINE(_USE_MATH_DEFINES, 1, [Define if your system needs it to define math constants like M_LN2])
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1576 AC_MSG_RESULT([yes])])
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1577 ;;
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1578 esac
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1579
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1580 ### Dynamic linking is now enabled only if we are building shared
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1581 ### libs and some API for dynamic linking is detected.
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1582
3705
7e90f4e9a4d5 [project @ 2000-07-22 01:57:25 by jwe]
jwe
parents: 3697
diff changeset
1583 LD_CXX='$(CXX)'
3232
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
1584 RDYNAMIC_FLAG=
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1585 DL_API_MSG=""
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1586 dlopen_api=false
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1587 shl_load_api=false
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1588 loadlibrary_api=false
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1589 dyld_api=false
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1590
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1591 if $SHARED_LIBS || $ENABLE_DYNAMIC_LINKING; then
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1592
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
1593 ## Check for dyld first since OS X can have a non-standard libdl
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1594
5599
38db18df5df8 [project @ 2006-01-14 17:17:38 by jwe]
jwe
parents: 5590
diff changeset
1595 AC_CHECK_HEADER(mach-o/dyld.h)
5717
34cda7d94c08 [project @ 2006-03-27 22:26:18 by jwe]
jwe
parents: 5708
diff changeset
1596 if test "$ac_cv_header_mach_o_dyld_h" = yes; then
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1597 dyld_api=true
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1598 else
4189
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1599 AC_CHECK_LIB(dld, shl_load)
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1600 AC_CHECK_FUNCS(shl_load shl_findsym)
4201
6acaf43c1725 [project @ 2002-11-23 19:36:21 by jwe]
jwe
parents: 4199
diff changeset
1601 if test "$ac_cv_func_shl_load" = yes \
6acaf43c1725 [project @ 2002-11-23 19:36:21 by jwe]
jwe
parents: 4199
diff changeset
1602 && test "$ac_cv_func_shl_findsym" = yes; then
4189
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1603 shl_load_api=true
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1604 else
4189
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1605 AC_CHECK_LIB(wsock32, LoadLibrary)
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1606 AC_CHECK_FUNCS(LoadLibrary)
4201
6acaf43c1725 [project @ 2002-11-23 19:36:21 by jwe]
jwe
parents: 4199
diff changeset
1607 if test "$ac_cv_func_loadlibrary" = yes; then
4189
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1608 loadlibrary_api=true
2063
219cf611ff70 [project @ 1996-04-07 22:15:23 by jwe]
jwe
parents: 2061
diff changeset
1609 else
4189
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1610 AC_CHECK_LIB(dl, dlopen)
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1611 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose)
4201
6acaf43c1725 [project @ 2002-11-23 19:36:21 by jwe]
jwe
parents: 4199
diff changeset
1612 if test "$ac_cv_func_dlclose" = yes \
6acaf43c1725 [project @ 2002-11-23 19:36:21 by jwe]
jwe
parents: 4199
diff changeset
1613 && test "$ac_cv_func_dlerror" = yes \
6acaf43c1725 [project @ 2002-11-23 19:36:21 by jwe]
jwe
parents: 4199
diff changeset
1614 && test "$ac_cv_func_dlopen" = yes \
6acaf43c1725 [project @ 2002-11-23 19:36:21 by jwe]
jwe
parents: 4199
diff changeset
1615 && test "$ac_cv_func_dlsym" = yes; then
4189
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1616 dlopen_api=true
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1617 else
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1618 case "$canonical_host_type" in
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1619 i[[3456]]86-*-sco3.2v5*)
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1620 LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)'
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1621 dlopen_api=true
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1622 ;;
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1623 esac
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1624 fi
2063
219cf611ff70 [project @ 1996-04-07 22:15:23 by jwe]
jwe
parents: 2061
diff changeset
1625 fi
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1626 fi
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1627 fi
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1628
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1629 ## autoconf test for LoadLibrary appears broken. Bypass for cygwin/mingw
6286
c6a7b0453f9a [project @ 2007-02-08 19:04:38 by jwe]
jwe
parents: 6276
diff changeset
1630 if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then
c6a7b0453f9a [project @ 2007-02-08 19:04:38 by jwe]
jwe
parents: 6276
diff changeset
1631 true
c6a7b0453f9a [project @ 2007-02-08 19:04:38 by jwe]
jwe
parents: 6276
diff changeset
1632 else
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1633 case "$canonical_host_type" in
6091
96a11041f52b [project @ 2006-10-25 21:25:04 by jwe]
jwe
parents: 6090
diff changeset
1634 *-*-cygwin* | *-*-mingw* | *-*-msdosmsvc)
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1635 loadlibrary_api=true;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1636 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1637 esac
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1638 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1639
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1640 if $dlopen_api; then
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1641 DL_API_MSG="(dlopen)"
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1642 AC_DEFINE(HAVE_DLOPEN_API, 1, [Define if your system has dlopen, dlsym, dlerror, and dlclose for dynamic linking])
3958
b88e01ad515e [project @ 2002-05-24 15:54:04 by jwe]
jwe
parents: 3956
diff changeset
1643 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic])
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1644 elif $shl_load_api; then
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1645 DL_API_MSG="(shl_load)"
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1646 AC_DEFINE(HAVE_SHL_LOAD_API, 1, [Define if your system has shl_load and shl_findsym for dynamic linking])
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1647 elif $loadlibrary_api; then
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1648 DL_API_MSG="(LoadLibrary)"
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1649 AC_DEFINE(HAVE_LOADLIBRARY_API, 1, [Define if your system has LoadLibrary for dynamic linking])
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1650 elif $dyld_api; then
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1651 DL_API_MSG="(dyld)"
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1652 AC_DEFINE(HAVE_DYLD_API, 1, [Define if your system has dyld for dynamic linking])
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1653 fi
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1654
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1655 if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1656 ENABLE_DYNAMIC_LINKING=true
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1657 AC_DEFINE(ENABLE_DYNAMIC_LINKING, 1, [Define if using dynamic linking])
1978
7291daadce9d [project @ 1996-02-26 09:35:44 by jwe]
jwe
parents: 1924
diff changeset
1658 fi
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1659 fi
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1660
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1661 if $SHARED_LIBS; then
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1662 LIBOCTINTERP=-loctinterp$SHLLINKEXT
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1663 LIBOCTAVE=-loctave$SHLLINKEXT
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1664 LIBCRUFT=-lcruft$SHLLINKEXT
1978
7291daadce9d [project @ 1996-02-26 09:35:44 by jwe]
jwe
parents: 1924
diff changeset
1665 else
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1666 LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)'
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1667 LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)'
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1668 LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)'
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
1669 fi
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1670
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1671 AC_SUBST(LD_CXX)
3232
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
1672 AC_SUBST(RDYNAMIC_FLAG)
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1673 AC_SUBST(ENABLE_DYNAMIC_LINKING)
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1674 AC_SUBST(LIBOCTINTERP)
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1675 AC_SUBST(LIBOCTAVE)
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1676 AC_SUBST(LIBCRUFT)
1901
527af71a8035 [project @ 1996-02-09 19:35:56 by jwe]
jwe
parents: 1894
diff changeset
1677
1300
4d86fe3f634e [project @ 1995-05-01 19:18:03 by jwe]
jwe
parents: 1265
diff changeset
1678 ### There is more than one possible prototype for gettimeofday. See
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1679 ### which one (if any) appears in sys/time.h. These tests are from
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1680 ### Emacs 19.
1300
4d86fe3f634e [project @ 1995-05-01 19:18:03 by jwe]
jwe
parents: 1265
diff changeset
1681
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1682 AC_MSG_CHECKING(for struct timeval)
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1683 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef TIME_WITH_SYS_TIME
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1684 #include <sys/time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1685 #include <time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1686 #else
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1687 #ifdef HAVE_SYS_TIME_H
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1688 #include <sys/time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1689 #else
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1690 #include <time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1691 #endif
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1692 #endif]], [[static struct timeval x; x.tv_sec = x.tv_usec;]])],
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1693 [AC_MSG_RESULT(yes)
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1694 HAVE_TIMEVAL=yes
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1695 AC_DEFINE(HAVE_TIMEVAL, 1, [Define if struct timeval is defined.])],
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1696 [AC_MSG_RESULT(no)
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1697 HAVE_TIMEVAL=no])
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1698
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1699 if test "x$HAVE_TIMEVAL" = xyes; then
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1700 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments)
5842
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1701 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef TIME_WITH_SYS_TIME
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1702 #include <sys/time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1703 #include <time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1704 #else
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1705 #ifdef HAVE_SYS_TIME_H
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1706 #include <sys/time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1707 #else
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1708 #include <time.h>
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1709 #endif
5842
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1710 #endif]], [[struct timeval time;
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1711 struct timezone dummy;
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1712 gettimeofday (&time, &dummy);]])],
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1713 [AC_MSG_RESULT(no)],
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1714 [AC_MSG_RESULT(yes)
5842
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1715 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1,
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1716 [Define if your system has a single-arg prototype for gettimeofday.])])
2782
14f1d4009e49 [project @ 1997-03-02 02:07:10 by jwe]
jwe
parents: 2762
diff changeset
1717 fi
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1718
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1719 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
1720 dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1721 dnl AC_CHECK_FUNCS(finite isnan isinf)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1722 dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1723 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
1724 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1725 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
1726 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
1727 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
1728 dnl with an argument.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1729
2508
f8d5dbbbc50a [project @ 1996-11-13 17:21:07 by jwe]
jwe
parents: 2488
diff changeset
1730 ### I am told that Inf and NaN don't work on m68k HP sytems, and that
f8d5dbbbc50a [project @ 1996-11-13 17:21:07 by jwe]
jwe
parents: 2488
diff changeset
1731 ### on SCO systems, isnan and isinf don't work, but they can be
f8d5dbbbc50a [project @ 1996-11-13 17:21:07 by jwe]
jwe
parents: 2488
diff changeset
1732 ### replaced by something that does.
956
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1733
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1734 case "$canonical_host_type" in
1384
083787534e18 [project @ 1995-09-13 08:25:37 by jwe]
jwe
parents: 1377
diff changeset
1735 m68k-hp-hpux*)
956
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1736 ;;
2508
f8d5dbbbc50a [project @ 1996-11-13 17:21:07 by jwe]
jwe
parents: 2488
diff changeset
1737 *-*-sco*)
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1738 AC_MSG_NOTICE([defining SCO to be 1])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1739 AC_DEFINE(SCO, 1, [Define if using an SCO system.])
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1740 AC_MSG_NOTICE([forcing HAVE_ISINF for SCO])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1741 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().])
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1742 AC_MSG_NOTICE([forcing HAVE_ISNAN for SCO])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1743 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().])
2508
f8d5dbbbc50a [project @ 1996-11-13 17:21:07 by jwe]
jwe
parents: 2488
diff changeset
1744 ;;
956
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1745 *)
4349
a6c22c2c9b09 [project @ 2003-02-21 18:59:07 by jwe]
jwe
parents: 4343
diff changeset
1746 AC_CHECK_FUNCS(finite isnan isinf copysign signbit)
6061
c968f4198067 [project @ 2006-10-18 20:57:04 by jwe]
jwe
parents: 6056
diff changeset
1747 AC_CHECK_FUNCS(_finite _isnan _copysign)
5098
ab4e64f92526 [project @ 2004-12-18 15:04:20 by jwe]
jwe
parents: 5078
diff changeset
1748 AC_CHECK_DECLS(signbit, , , [#include <math.h>])
956
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1749 ;;
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1750 esac
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1751
1076
2ba812c74caa [project @ 1995-01-27 14:39:54 by jwe]
jwe
parents: 1075
diff changeset
1752 ### Check for nonstandard but common math functions that we need.
2ba812c74caa [project @ 1995-01-27 14:39:54 by jwe]
jwe
parents: 1075
diff changeset
1753
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7683
diff changeset
1754 AC_CHECK_FUNCS(acosh acoshf asinh asinhf atanh atanhf erf erff erfc erfcf exp2 exp2f log2 log2f)
7914
e998e81224b5 Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents: 7905
diff changeset
1755 AC_CHECK_FUNCS(hypotf _hypotf)
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1756
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1757 ### Checks for OS specific cruft.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1758
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1759 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev])
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1760
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1761 AC_STRUCT_TM
1186
d94bcafabac2 [project @ 1995-03-30 04:57:32 by jwe]
jwe
parents: 1177
diff changeset
1762 AC_STRUCT_TIMEZONE
1388
32ede420188c [project @ 1995-09-14 07:07:50 by jwe]
jwe
parents: 1384
diff changeset
1763 AC_FUNC_CLOSEDIR_VOID
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
1764
3892
56db014d8980 [project @ 2002-04-05 04:08:56 by jwe]
jwe
parents: 3888
diff changeset
1765 AC_CHECK_MEMBERS(struct group.gr_passwd)
2548
b50cc31aa0cd [project @ 1996-11-20 06:43:26 by jwe]
jwe
parents: 2515
diff changeset
1766
4067
e97fb79fc1d5 [project @ 2002-09-26 22:43:25 by jwe]
jwe
parents: 4066
diff changeset
1767 # mkdir takes a single argument on some systems.
e97fb79fc1d5 [project @ 2002-09-26 22:43:25 by jwe]
jwe
parents: 4066
diff changeset
1768 OCTAVE_MKDIR_TAKES_ONE_ARG
e97fb79fc1d5 [project @ 2002-09-26 22:43:25 by jwe]
jwe
parents: 4066
diff changeset
1769
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1770 octave_found_termlib=no
2592
0863d2cab514 [project @ 1996-12-14 04:39:00 by jwe]
jwe
parents: 2578
diff changeset
1771 for termlib in ncurses curses termcap terminfo termlib; do
2034
91d90de50e4e [project @ 1996-03-27 03:55:50 by jwe]
jwe
parents: 2033
diff changeset
1772 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1773 case "${TERMLIBS}" in
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1774 *-l${termlib}*)
3822
1a809dae77db [project @ 2001-04-26 16:07:17 by jwe]
jwe
parents: 3820
diff changeset
1775 LIBS="$TERMLIBS $LIBS"
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1776 AC_SUBST(TERMLIBS)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1777 octave_found_termlib=yes
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1778 break
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1779 ;;
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1780 esac
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1781 done
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1782
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1783 if test "$octave_found_termlib" = no; then
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1784 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1785 r -ltermlib!"
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
1786 AC_MSG_WARN($warn_termlibs)
2488
d4eb39779b88 [project @ 1996-11-08 22:35:59 by jwe]
jwe
parents: 2484
diff changeset
1787 fi
d4eb39779b88 [project @ 1996-11-08 22:35:59 by jwe]
jwe
parents: 2484
diff changeset
1788
3822
1a809dae77db [project @ 2001-04-26 16:07:17 by jwe]
jwe
parents: 3820
diff changeset
1789 OCTAVE_ENABLE_READLINE
1a809dae77db [project @ 2001-04-26 16:07:17 by jwe]
jwe
parents: 3820
diff changeset
1790
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1791 AC_MSG_CHECKING([for struct exception in math.h])
5842
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1792 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1793 [[struct exception *x; x->type; x->name;]])],
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1794 [AC_MSG_RESULT(yes)
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1795 AC_DEFINE(EXCEPTION_IN_MATH, 1,
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1796 [Define if your math.h declares struct exception for matherr().])],
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1797 [AC_MSG_RESULT(no)])
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1798
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1799 ### Signal stuff.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1800
834
44ce29d8cb7b [project @ 1994-10-19 18:17:44 by jwe]
jwe
parents: 832
diff changeset
1801 AC_TYPE_SIGNAL
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1802 AC_CHECK_DECLS([sys_siglist], [], [],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1803 [#include <signal.h>
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1804 /* NetBSD declares sys_siglist in unistd.h. */
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1805 #if HAVE_UNISTD_H
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1806 # include <unistd.h>
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1807 #endif
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1808 ])
2470
1e673f0648b5 [project @ 1996-11-05 21:46:06 by jwe]
jwe
parents: 2457
diff changeset
1809 OCTAVE_SIGNAL_CHECK
1e673f0648b5 [project @ 1996-11-05 21:46:06 by jwe]
jwe
parents: 2457
diff changeset
1810 OCTAVE_REINSTALL_SIGHANDLERS
6098
70158d7ab8ef [project @ 2006-10-26 14:51:36 by jwe]
jwe
parents: 6094
diff changeset
1811 if test "$ac_cv_type_signal" = "void"; then
70158d7ab8ef [project @ 2006-10-26 14:51:36 by jwe]
jwe
parents: 6094
diff changeset
1812 AC_DEFINE(RETSIGTYPE_IS_VOID, 1, [Define if this if RETSIGTYPE is defined to be void. Needed because preprocessor comparisons to void fail on some systems.])
70158d7ab8ef [project @ 2006-10-26 14:51:36 by jwe]
jwe
parents: 6094
diff changeset
1813 fi
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1814
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2630
diff changeset
1815 ### A system dependent kluge or two.
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2630
diff changeset
1816
2035
809871abd06b [project @ 1996-03-27 04:10:29 by jwe]
jwe
parents: 2034
diff changeset
1817 AC_CHECK_FUNCS(getrusage times)
2427
2f50b24ce84f [project @ 1996-10-25 06:15:28 by jwe]
jwe
parents: 2421
diff changeset
1818 case "$canonical_host_type" in
3971
41e7fa40ff4c [project @ 2002-07-02 23:46:48 by jwe]
jwe
parents: 3958
diff changeset
1819 *-*-cygwin*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1820 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.])
2427
2f50b24ce84f [project @ 1996-10-25 06:15:28 by jwe]
jwe
parents: 2421
diff changeset
1821 ;;
2f50b24ce84f [project @ 1996-10-25 06:15:28 by jwe]
jwe
parents: 2421
diff changeset
1822 esac
2f50b24ce84f [project @ 1996-10-25 06:15:28 by jwe]
jwe
parents: 2421
diff changeset
1823
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1824 ### Checks for other programs used for building, testing, installing,
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1825 ### and running Octave.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1826
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4531
diff changeset
1827 AC_PROG_AWK
7244
5a9561046b89 [project @ 2007-12-04 02:27:27 by jwe]
jwe
parents: 7237
diff changeset
1828 OCTAVE_PROG_FIND
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4081
diff changeset
1829 OCTAVE_PROG_SED
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5451
diff changeset
1830 OCTAVE_PROG_PERL
5496
0d1f6c7fe37a [project @ 2005-10-14 07:44:45 by jwe]
jwe
parents: 5468
diff changeset
1831 OCTAVE_PROG_PYTHON
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4081
diff changeset
1832
3729
ea62136d86e8 [project @ 2000-10-31 17:17:26 by jwe]
jwe
parents: 3726
diff changeset
1833 OCTAVE_PROG_FLEX
ea62136d86e8 [project @ 2000-10-31 17:17:26 by jwe]
jwe
parents: 3726
diff changeset
1834 OCTAVE_PROG_BISON
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1835
1722
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1721
diff changeset
1836 AC_PROG_LN_S
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1721
diff changeset
1837
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1838 AC_PROG_INSTALL
2642
042f5cbdb2a8 [project @ 1997-01-29 06:28:56 by jwe]
jwe
parents: 2633
diff changeset
1839 INSTALL_SCRIPT='${INSTALL}'
042f5cbdb2a8 [project @ 1997-01-29 06:28:56 by jwe]
jwe
parents: 2633
diff changeset
1840 AC_SUBST(INSTALL_SCRIPT)
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1841
5468
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
1842 OCTAVE_PROG_DESKTOP_FILE_INSTALL
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
1843
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1844 OCTAVE_PROG_GNUPLOT
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1845 OCTAVE_PROG_PAGER
3673
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
1846 OCTAVE_PROG_GPERF
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1847
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1848 OCTAVE_PROG_GHOSTSCRIPT
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1849 OCTAVE_PROG_MAKEINFO
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1850 OCTAVE_PROG_TEXI2DVI
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1851 OCTAVE_PROG_TEXI2PDF
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1852
2032
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1853 ### Even though we include config.h, we need to have the preprocessor
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1854 ### defines available in a variable for the octave-bug script. Use
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1855 ### UGLY_DEFS for that.
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1856
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1857 AC_OUTPUT_MAKE_DEFS
3956
8a5596d6f7c4 [project @ 2002-05-24 05:29:57 by jwe]
jwe
parents: 3923
diff changeset
1858
6957
768a19157591 [project @ 2007-10-04 17:58:36 by jwe]
jwe
parents: 6941
diff changeset
1859 ### We have to insert extra levels of backslash quoting here so that
768a19157591 [project @ 2007-10-04 17:58:36 by jwe]
jwe
parents: 6941
diff changeset
1860 ### the right thing ends up in oct-conf.h.
6959
47f4f4e88166 [project @ 2007-10-04 20:43:32 by jwe]
jwe
parents: 6957
diff changeset
1861 UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'`
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1862 AC_MSG_NOTICE([defining UGLY_DEFS to be $UGLY_DEFS])
2032
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1863 AC_SUBST(UGLY_DEFS)
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1864
4645
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1865 ### Maybe add -Wall, -W, and -Wshadow to compiler flags now that we're
4587
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
1866 ### done feature testing.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1867
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1868 if test -z "$EXTERN_CFLAGS"; then
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1869 OCTAVE_CC_FLAG(-Wall, [
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1870 WARN_CFLAGS="$WARN_CFLAGS -Wall";
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1871 AC_MSG_RESULT([adding -Wall to WARN_CFLAGS])])
4645
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1872 OCTAVE_CC_FLAG(-W, [
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1873 WARN_CFLAGS="$WARN_CFLAGS -W";
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1874 AC_MSG_RESULT([adding -W to WARN_CFLAGS])])
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1875 OCTAVE_CC_FLAG(-Wshadow, [
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1876 WARN_CFLAGS="$WARN_CFLAGS -Wshadow";
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1877 AC_MSG_RESULT([adding -Wshadow to WARN_CFLAGS])])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1878 fi
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1879
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1880 if test -z "$EXTERN_CXXFLAGS"; then
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1881 OCTAVE_CXX_FLAG(-Wall, [
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1882 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall";
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1883 AC_MSG_RESULT([adding -Wall to WARN_CXXFLAGS])])
4645
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1884 OCTAVE_CXX_FLAG(-W, [
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1885 WARN_CXXFLAGS="$WARN_CXXFLAGS -W";
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1886 AC_MSG_RESULT([adding -W to WARN_CXXFLAGS])])
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1887 OCTAVE_CXX_FLAG(-Wshadow, [
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1888 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wshadow";
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1889 AC_MSG_RESULT([adding -Wshadow to WARN_CXXFLAGS])])
5759
ce79d238f142 [project @ 2006-04-13 13:04:32 by jwe]
jwe
parents: 5719
diff changeset
1890 OCTAVE_CXX_FLAG(-Wold-style-cast, [
ce79d238f142 [project @ 2006-04-13 13:04:32 by jwe]
jwe
parents: 5719
diff changeset
1891 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wold-style-cast";
ce79d238f142 [project @ 2006-04-13 13:04:32 by jwe]
jwe
parents: 5719
diff changeset
1892 AC_MSG_RESULT([adding -Wold-style-cast to WARN_CXXFLAGS])])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1893 fi
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1894
4971
3486c62f2d62 [project @ 2004-09-08 16:46:36 by jwe]
jwe
parents: 4968
diff changeset
1895 GCC_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wmissing-prototypes \
3486c62f2d62 [project @ 2004-09-08 16:46:36 by jwe]
jwe
parents: 4968
diff changeset
1896 -Wpointer-arith -Wstrict-prototypes -Wwrite-strings"
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1897
5194
cb213ce19827 [project @ 2005-03-04 19:38:21 by jwe]
jwe
parents: 5174
diff changeset
1898 GXX_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wpointer-arith \
cb213ce19827 [project @ 2005-03-04 19:38:21 by jwe]
jwe
parents: 5174
diff changeset
1899 -Wwrite-strings -Weffc++ -Wenum-clash"
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1900
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1901 AC_ARG_ENABLE(picky-flags,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1902 [AS_HELP_STRING([--enable-picky-flags],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1903 [add extra warning options to CFLAGS, CXXFLAGS, FFLAGS])],
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1904 [if test "$enableval" = no; then
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1905 true
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1906 elif test "$enableval" = yes; then
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1907 if test -z "$EXTERN_CFLAGS"; then
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1908 for flag in $GCC_PICKY_FLAGS; do
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1909 OCTAVE_CC_FLAG($flag, [
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1910 WARN_CFLAGS="$WARN_CFLAGS $flag";
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1911 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])])
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1912 done
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1913 fi
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1914 if test -z "$EXTERN_CXXFLAGS"; then
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1915 for flag in $GXX_PICKY_FLAGS; do
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1916 OCTAVE_CXX_FLAG($flag, [
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1917 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag";
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1918 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])])
3131
9c5160c83bd2 [project @ 1998-01-29 04:46:33 by jwe]
jwe
parents: 3130
diff changeset
1919 done
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1920 fi
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1921 fi], [])
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1922
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1923 AC_SUBST(WARN_CFLAGS)
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1924 AC_SUBST(WARN_CXXFLAGS)
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1925
1146
b78e479dbf16 [project @ 1995-02-26 22:01:22 by jwe]
jwe
parents: 1145
diff changeset
1926 ### Run configure in subdirectories.
b78e479dbf16 [project @ 1995-02-26 22:01:22 by jwe]
jwe
parents: 1145
diff changeset
1927
1304
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1928 export CC
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1929 export CXX
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1930 export F77
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1931
4378
7d48a8fba1d4 [project @ 2003-04-19 00:03:47 by jwe]
jwe
parents: 4377
diff changeset
1932 AC_CONFIG_SUBDIRS(scripts)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1933
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1934 ### Some things to add to the bottom of config.h.
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1935
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1936 AH_BOTTOM([
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1937 #if defined (__GNUC__)
5389
25c8956d2204 [project @ 2005-06-15 03:45:46 by jwe]
jwe
parents: 5351
diff changeset
1938 #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1939 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__))
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1940 #define GCC_ATTR_UNUSED __attribute__ ((__unused__))
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1941 #else
5389
25c8956d2204 [project @ 2005-06-15 03:45:46 by jwe]
jwe
parents: 5351
diff changeset
1942 #define GCC_ATTR_DEPRECATED
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1943 #define GCC_ATTR_NORETURN
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1944 #define GCC_ATTR_UNUSED
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1945 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1946
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1947 #define X_CAST(T, E) (T) (E)
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1948
5854
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1949 #if defined (CXX_BROKEN_REINTERPRET_CAST)
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1950 #define FCN_PTR_CAST(T, E) (T) (E)
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1951 #else
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1952 #define FCN_PTR_CAST(T, E) reinterpret_cast<T> (E)
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1953 #endif
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1954
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1955 #if defined(HAVE_F2C) && !defined(F77_FUNC)
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1956 # define F77_FUNC(x,X) x ## _
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1957 # define F77_FUNC_(x,X) x ## __
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1958 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1959
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1960 #if !defined(HAVE_DEV_T)
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1961 typedef short dev_t;
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1962 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1963
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1964 #if !defined(HAVE_INO_T)
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1965 typedef unsigned long ino_t;
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1966 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1967
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1968 #if !defined(HAVE_NLINK_T)
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1969 typedef short nlink_t;
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1970 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1971
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1972 #if !defined(HAVE_SIGSET_T)
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1973 typedef int sigset_t;
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1974 #endif
4101
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1975
4180
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1976 #if !defined(HAVE_SIG_ATOMIC_T)
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1977 typedef int sig_atomic_t;
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1978 #endif
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1979
6122
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1980 #if defined (_MSC_VER)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1981 #define __WIN32__
6276
d26c558691cd [project @ 2007-02-07 09:01:24 by jwe]
jwe
parents: 6271
diff changeset
1982 #define WIN32
6122
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1983 /* missing parameters in macros */
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1984 #pragma warning (disable: 4003)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1985 /* missing implementations in template instantiation */
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1986 #pragma warning (disable: 4996)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1987 /* deprecated function names (FIXME?) */
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1988 #pragma warning (disable: 4661)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1989 #endif
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1990
4377
ced2ac0cff7b [project @ 2003-04-17 19:13:25 by jwe]
jwe
parents: 4368
diff changeset
1991 #if defined (__WIN32__) && ! defined (__CYGWIN__)
4101
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1992 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
6049
04c2ad6d1679 [project @ 2006-10-13 14:32:15 by jwe]
jwe
parents: 6043
diff changeset
1993 #elif defined (__CYGWIN__)
4377
ced2ac0cff7b [project @ 2003-04-17 19:13:25 by jwe]
jwe
parents: 4368
diff changeset
1994 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
ced2ac0cff7b [project @ 2003-04-17 19:13:25 by jwe]
jwe
parents: 4368
diff changeset
1995 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
6049
04c2ad6d1679 [project @ 2006-10-13 14:32:15 by jwe]
jwe
parents: 6043
diff changeset
1996 #else
04c2ad6d1679 [project @ 2006-10-13 14:32:15 by jwe]
jwe
parents: 6043
diff changeset
1997 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
4101
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1998 #endif
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1999
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
2000 /* Define if we expect to have <windows.h>, Sleep, etc. */
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
2001 #if defined (__WIN32__) && ! defined (__CYGWIN__)
4101
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
2002 #define OCTAVE_USE_WINDOWS_API 1
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
2003 #endif
4153
6b96ce9f5743 [project @ 2002-11-06 20:38:49 by jwe]
jwe
parents: 4138
diff changeset
2004
8577
ab61b47d3435 configure.in (AH_BOTTOM): Also check __MACH__ when defining OCTAVE_USE_OS_X_API
John W. Eaton <jwe@octave.org>
parents: 8573
diff changeset
2005 #if defined (__APPLE__) && defined (__MACH__)
8573
da61d0f7ce0b configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents: 8562
diff changeset
2006 #define OCTAVE_USE_OS_X_API 1
da61d0f7ce0b configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents: 8562
diff changeset
2007 #endif
da61d0f7ce0b configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents: 8562
diff changeset
2008
4180
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
2009 /* sigsetjmp is a macro, not a function. */
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
2010 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP)
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
2011 #define OCTAVE_HAVE_SIG_JUMP
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
2012 #endif
4249
8a1ef8fe4036 [project @ 2002-12-31 04:42:32 by jwe]
jwe
parents: 4229
diff changeset
2013
4278
2cc12970de72 [project @ 2003-01-04 00:41:39 by jwe]
jwe
parents: 4270
diff changeset
2014 #if defined (__DECCXX)
2cc12970de72 [project @ 2003-01-04 00:41:39 by jwe]
jwe
parents: 4270
diff changeset
2015 #define __USE_STD_IOSTREAM
2cc12970de72 [project @ 2003-01-04 00:41:39 by jwe]
jwe
parents: 4270
diff changeset
2016 #endif
4552
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2017
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2018 #if defined (_UNICOS)
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2019 #define F77_USES_CRAY_CALLING_CONVENTION
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2020 #endif
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2021
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2022 #if 0
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2023 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2024 #endif
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2025
5297
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2026 #ifdef USE_64_BIT_IDX_T
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2027 #define SIZEOF_OCTAVE_IDX_TYPE 8
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2028 #else
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2029 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2030 #endif
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2031
8185
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2032 // To be able to use long doubles for 64-bit mixed arithmetics, we need them at
8333
9238637cb81c style fixes
John W. Eaton <jwe@octave.org>
parents: 8306
diff changeset
2033 // least 80 bits wide and we need roundl declared in math.h.
9238637cb81c style fixes
John W. Eaton <jwe@octave.org>
parents: 8306
diff changeset
2034 // FIXME -- maybe substitute this by a more precise check in the future.
8185
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2035 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL)
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2036 #define OCTAVE_INT_USE_LONG_DOUBLE
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2037 #endif
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2038
7067
88417316c1b0 [project @ 2007-10-25 06:57:16 by jwe]
jwe
parents: 7063
diff changeset
2039 #define OCTAVE_EMPTY_CPP_ARG
88417316c1b0 [project @ 2007-10-25 06:57:16 by jwe]
jwe
parents: 7063
diff changeset
2040
6121
483176585b84 [project @ 2006-10-28 03:06:32 by jwe]
jwe
parents: 6110
diff changeset
2041 #include "oct-dlldefs.h"
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2042 #include "oct-types.h"
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
2043 ])
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
2044
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
2045 ### Do the substitutions in all the Makefiles.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
2046
7253
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2047 AC_CONFIG_FILES([Makefile octMakefile Makeconf test/Makefile
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2048 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2049 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile
8256
dba0037e6602 Import new texinfo.tex allowing @ in directory name. Update OOP example class location
David Bateman <dbateman@free.fr>
parents: 8221
diff changeset
2050 examples/Makefile examples/@polynomial/Makefile liboctave/Makefile
8221
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8202
diff changeset
2051 liboctave/oct-types.h src/Makefile src/mxarray.h libcruft/Makefile
06094fa570a3 Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents: 8202
diff changeset
2052 libcruft/Makerules libcruft/amos/Makefile libcruft/blas/Makefile
7253
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2053 libcruft/daspk/Makefile libcruft/dasrt/Makefile
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2054 libcruft/dassl/Makefile libcruft/fftpack/Makefile
8306
43795cf108d0 initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents: 8269
diff changeset
2055 libcruft/lapack/Makefile
7253
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2056 libcruft/misc/Makefile libcruft/odepack/Makefile
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2057 libcruft/ordered-qz/Makefile libcruft/quadpack/Makefile
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2058 libcruft/ranlib/Makefile libcruft/slatec-fn/Makefile
c5a024013d2d [project @ 2007-12-04 20:51:24 by jwe]
jwe
parents: 7244
diff changeset
2059 libcruft/slatec-err/Makefile libcruft/villad/Makefile
7874
e3a502930e2a eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents: 7863
diff changeset
2060 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
2061 AC_OUTPUT
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2062
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
2063 AC_CONFIG_COMMANDS([default-1],[[chmod +x install-octave]],[[]])
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3174
diff changeset
2064
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2065 ### Print a summary so that important information isn't missed.
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2066
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2067 if test -z "$F77"; then
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2068 FORT="$F2C $F2CFLAGS"
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2069 else
2610
8125b6f9c134 [project @ 1997-01-20 17:23:44 by jwe]
jwe
parents: 2605
diff changeset
2070 FORT="$F77 $FFLAGS"
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2071 fi
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2072
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
2073 AC_MSG_NOTICE([
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2074
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2075 Octave is now configured for $canonical_host_type
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2076
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
2077 Source directory: $srcdir
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
2078 Installation prefix: $prefix
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
2079 C compiler: $CC $XTRA_CFLAGS $WARN_CFLAGS $CFLAGS
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
2080 C++ compiler: $CXX $XTRA_CXXFLAGS $WARN_CXXFLAGS $CXXFLAGS
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
2081 Fortran compiler: $FORT
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
2082 Fortran libraries: $FLIBS
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
2083 BLAS libraries: $BLAS_LIBS
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
2084 FFTW libraries: $FFTW_LIBS
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
2085 GLPK libraries: $GLPK_LIBS
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2086 UMFPACK libraries: $UMFPACK_LIBS
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
2087 AMD libraries: $AMD_LIBS
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
2088 CAMD libraries: $CAMD_LIBS
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2089 COLAMD libraries: $COLAMD_LIBS
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2090 CCOLAMD libraries: $CCOLAMD_LIBS
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2091 CHOLMOD libraries: $CHOLMOD_LIBS
5610
9761b7d24e9e [project @ 2006-02-09 09:12:02 by dbateman]
dbateman
parents: 5603
diff changeset
2092 CXSPARSE libraries: $CXSPARSE_LIBS
8417
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
2093 ARPACK libraries: $ARPACK_LIBS
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2094 QRUPDATE libraries: $QRUPDATE_LIBS
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
2095 HDF5 libraries: $HDF5_LIBS
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
2096 CURL libraries: $CURL_LIBS
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
2097 REGEX libraries: $REGEX_LIBS
6829
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2098 QHULL libraries: $QHULL_LIBS
8560
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
2099 OPENGL libraries: $OPENGL_LIBS
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
2100 FLTK backend libs: $GRAPHICS_LIBS
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
2101 X11 include flags: $X11_INCFLAGS
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
2102 X11 libraries: $X11_LIBS
3822
1a809dae77db [project @ 2001-04-26 16:07:17 by jwe]
jwe
parents: 3820
diff changeset
2103 LIBS: $LIBS
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
2104 Default pager: $DEFAULT_PAGER
7361
a2870fd8ac58 [project @ 2008-01-12 07:50:54 by jwe]
jwe
parents: 7266
diff changeset
2105 gnuplot: $GNUPLOT
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2106 Magick config: $MAGICK_CONFIG
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
2107
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2108 Do internal array bounds checking: $BOUNDS_CHECKING
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2109 Build static libraries: $STATIC_LIBS
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2110 Build shared libraries: $SHARED_LIBS
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
2111 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2112 Include support for GNU readline: $USE_READLINE
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2113 64-bit array dims and indexing: $USE_64_BIT_IDX_T
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2114 ])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2115
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2116 warn_msg_printed=false
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2117
4469
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2118 if $ENABLE_DYNAMIC_LINKING; then
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2119 if $SHARED_LIBS; then
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2120 true
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2121 else
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2122 AC_MSG_WARN([You used --enable-dl but not --enable-shared.])
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2123 AC_MSG_WARN([Are you sure that is what you want to do?])
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2124 warn_msg_printed=true
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2125 fi
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2126 fi
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2127
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2128 if test -n "$gxx_only"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2129 AC_MSG_WARN($gxx_only)
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2130 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2131 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2132
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2133 if test -n "$warn_gcc_version"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2134 AC_MSG_WARN($warn_gcc_version)
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2135 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2136 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2137
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2138 if test -n "$warn_gcc_only"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2139 AC_MSG_WARN($warn_gcc_only)
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2140 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2141 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2142
3825
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2143 if test -n "$warn_readline"; then
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2144 AC_MSG_WARN($warn_readline)
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2145 warn_msg_printed=true
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2146 fi
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2147
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2148 if test -n "$warn_termlibs"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2149 AC_MSG_WARN($warn_termlibs)
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2150 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2151 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2152
3673
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2153 if test -n "$warn_gperf"; then
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2154 AC_MSG_WARN($warn_gperf)
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2155 warn_msg_printed=true
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2156 fi
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2157
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2158 if test -n "$warn_flex"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2159 AC_MSG_WARN($warn_flex)
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2160 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2161 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2162
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2163 if test -n "$warn_bison"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2164 AC_MSG_WARN($warn_bison)
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2165 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2166 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2167
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2168 if test -n "$warn_less"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2169 AC_MSG_WARN($warn_less)
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2170 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2171 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2172
7683
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
2173 if test -n "$warn_blas_f77_incompatible"; then
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
2174 AC_MSG_WARN($warn_blas_f77_incompatible)
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
2175 warn_msg_printed=true
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
2176 fi
8136cb19fb7a implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents: 7638
diff changeset
2177
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2178 if test -n "$warn_umfpack"; then
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2179 AC_MSG_WARN($warn_umfpack)
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2180 warn_msg_printed=true
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2181 fi
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2182
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2183 if test -n "$warn_qrupdate"; then
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2184 AC_MSG_WARN($warn_qrupdate)
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2185 warn_msg_printed=true
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2186 fi
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2187
7619
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2188 if test -n "$warn_amd"; then
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2189 AC_MSG_WARN($warn_amd)
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2190 warn_msg_printed=true
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2191 fi
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2192
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2193 if test -n "$warn_colamd"; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2194 AC_MSG_WARN($warn_colamd)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2195 warn_msg_printed=true
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2196 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2197
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2198 if test -n "$warn_ccolamd"; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2199 AC_MSG_WARN($warn_ccolamd)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2200 warn_msg_printed=true
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2201 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2202
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2203 if test -n "$warn_cholmod"; then
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2204 AC_MSG_WARN($warn_cholmod)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2205 warn_msg_printed=true
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2206 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2207
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2208 if test -n "$warn_cxsparse"; then
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2209 AC_MSG_WARN($warn_cxsparse)
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2210 warn_msg_printed=true
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2211 fi
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2212
8417
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
2213 if test -n "$warn_arpack"; then
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
2214 AC_MSG_WARN($warn_arpack)
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
2215 warn_msg_printed=true
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
2216 fi
654bcfb937bf Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents: 8377
diff changeset
2217
6335
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2218 if test -n "$warn_curl"; then
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2219 AC_MSG_WARN($warn_curl)
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2220 warn_msg_printed=true
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2221 fi
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2222
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2223 if test -n "$warn_fftw"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2224 AC_MSG_WARN($warn_fftw)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2225 warn_msg_printed=true
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2226 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2227
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2228 if test -n "$warn_glpk"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2229 AC_MSG_WARN($warn_glpk)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2230 warn_msg_printed=true
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2231 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2232
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2233 if test -n "$warn_magick"; then
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2234 AC_MSG_WARN($warn_magick)
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2235 warn_msg_printed=true
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2236 fi
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2237
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2238 if test -n "$warn_hdf5"; then
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2239 AC_MSG_WARN($warn_hdf5)
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2240 warn_msg_printed=true
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2241 fi
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2242
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2243 if test -n "$warn_regex"; then
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2244 AC_MSG_WARN($warn_regex)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2245 warn_msg_printed=true
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2246 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2247
6025
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2248 if test -n "$warn_pcre"; then
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2249 AC_MSG_WARN($warn_pcre)
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2250 warn_msg_printed=true
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2251 fi
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2252
6829
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2253 if test -n "$warn_qhull"; then
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2254 AC_MSG_WARN($warn_qhull)
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2255 warn_msg_printed=true
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2256 fi
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2257
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2258 if test -n "$warn_zlib"; then
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2259 AC_MSG_WARN($warn_zlib)
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2260 warn_msg_printed=true
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2261 fi
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2262
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2263 if test -n "$warn_ghostscript"; then
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2264 AC_MSG_WARN($warn_ghostscript)
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2265 warn_msg_printed=true
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2266 fi
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2267
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2268 if test -n "$warn_makeinfo"; then
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2269 AC_MSG_WARN($warn_makeinfo)
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2270 warn_msg_printed=true
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2271 fi
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2272
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2273 if test -n "$warn_texi2dvi"; then
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2274 AC_MSG_WARN($warn_texi2dvi)
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2275 warn_msg_printed=true
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2276 fi
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2277
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2278 if test -n "$warn_texi2pdf"; then
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2279 AC_MSG_WARN($warn_texi2pdf)
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2280 warn_msg_printed=true
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2281 fi
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2282
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2283 if test -n "$warn_64_bit"; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2284 AC_MSG_WARN($warn_64_bit)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2285 warn_msg_printed=true
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2286 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2287
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2288 if test -n "$warn_gnuplot"; then
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2289
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2290 ## If you change this text, be sure to also change the corresponding
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2291 ## set of warnings above.
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2292
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2293 AC_MSG_WARN([])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2294 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2295 AC_MSG_WARN([installed, but you won't be able to use any of Octave's])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2296 AC_MSG_WARN([plotting commands without it.])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2297 AC_MSG_WARN([])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2298 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2299 AC_MSG_WARN([tell Octave where to find it by typing the command])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2300 AC_MSG_WARN([])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2301 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2302 AC_MSG_WARN([])
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2303 AC_MSG_WARN([at the Octave prompt.])
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2304 AC_MSG_WARN([])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2305 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2306 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2307
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2308 if $USE_64_BIT_IDX_T; then
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2309 AC_MSG_WARN([])
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2310 AC_MSG_WARN([You used the EXPERIMENTAL --enable-64 option.])
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2311 AC_MSG_WARN([Are you sure that is what you want to do?])
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2312 AC_MSG_WARN([])
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2313 AC_MSG_WARN([You must ensure that the Fortran compiler generates])
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2314 AC_MSG_WARN([code with 8 byte signed INTEGER values, and that your])
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2315 AC_MSG_WARN([BLAS and LAPACK libraries are compiled to use 8 byte])
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2316 AC_MSG_WARN([signed integers for array indexing.])
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2317 AC_MSG_WARN([])
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2318 warn_msg_printed=true
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2319 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2320
7944
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2321 native_graphics=true
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2322 if test -n "$warn_freetype"; then
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2323 AC_MSG_WARN("$warn_freetype")
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2324 native_graphics=false
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2325 warn_msg_printed=true
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2326 fi
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2327
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2328 if test -n "$warn_ftgl"; then
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2329 AC_MSG_WARN("$warn_ftgl")
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2330 native_graphics=false
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2331 warn_msg_printed=true
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2332 fi
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2333
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2334 if test -n "$warn_fltk_config"; then
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2335 AC_MSG_WARN("$warn_fltk_config")
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2336 native_graphics=false
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2337 warn_msg_printed=true
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2338 fi
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2339
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2340 if test -n "$warn_fltk_opengl"; then
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2341 AC_MSG_WARN("$warn_fltk_opengl")
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2342 native_graphics=false
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2343 warn_msg_printed=true
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2344 fi
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2345
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2346 if $native_graphics; then
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2347 true;
c2449e91f50a configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents: 7937
diff changeset
2348 else
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2349 AC_MSG_WARN([])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2350 AC_MSG_WARN([I didn't find the necessary libraries to compile native])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2351 AC_MSG_WARN([graphics. It isn't necessary to have native graphics])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2352 AC_MSG_WARN([but you will have to use gnuplot or you won't be able])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2353 AC_MSG_WARN([to use any of Octave's plotting commands])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2354 AC_MSG_WARN([])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2355 warn_msg_printed=true
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2356 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2357
6191
7498bfad5410 [project @ 2006-11-30 17:32:20 by jwe]
jwe
parents: 6186
diff changeset
2358 if $warn_msg_printed; then
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2359 AC_MSG_NOTICE([
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2360
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2361 NOTE: libraries may be skipped if a library is not found OR
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2362 if the library on your system is missing required features.
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2363 ])
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2364 fi
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2365
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2366 ### End of configure.