annotate configure.ac @ 12770:3666e8e6f96e stable release-3-4-2

Version 3.4.2 released. * configure.ac (AC_INIT): Version is now 3.4.2. (OCTAVE_RELEASE_DATE): Now 2011-06-24.
author John W. Eaton <jwe@octave.org>
date Fri, 24 Jun 2011 10:36:40 -0400
parents a79fb48f05bc
children c55df65b543a fd9187676535
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
11523
fd0a3ac60b0e update copyright notices
John W. Eaton <jwe@octave.org>
parents: 11514
diff changeset
5 dnl Copyright (C) 1993-2011 John W. Eaton
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
6 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
7 ### This file is part of Octave.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
8 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
9 ### 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
10 ### 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
11 ### 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
12 ### your option) any later version.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
13 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
14 ### 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
15 ### 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
16 ### 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
17 ### for more details.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
18 ###
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
19 ### 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
20 ### 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
21 ### <http://www.gnu.org/licenses/>.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
22
4587
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
23 ### Preserve CFLAGS and CXXFLAGS from the environment before doing
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
24 ### 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
25 ### AC_PROG_CC or AC_PROG_CXX.
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
26
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
27 EXTERN_CFLAGS="$CFLAGS"
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
28 EXTERN_CXXFLAGS="$CXXFLAGS"
7b957b442818 [project @ 2003-11-10 15:50:39 by jwe]
jwe
parents: 4552
diff changeset
29
12770
3666e8e6f96e Version 3.4.2 released.
John W. Eaton <jwe@octave.org>
parents: 12768
diff changeset
30 AC_INIT([GNU Octave], [3.4.2], [http://octave.org/bugs.html], [octave])
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
31
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
32 dnl PACKAGE_VERSION is set by the AC_INIT VERSION arg
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
33 OCTAVE_VERSION="$PACKAGE_VERSION"
12747
901d466ee55a Version 3.4.1 released.
John W. Eaton <jwe@octave.org>
parents: 12744
diff changeset
34 OCTAVE_API_VERSION_NUMBER="45"
9917
c1210502785b provide OCTAVE_API_VERSION_NUMBER
John W. Eaton <jwe@octave.org>
parents: 9915
diff changeset
35 OCTAVE_API_VERSION="api-v$OCTAVE_API_VERSION_NUMBER+"
12770
3666e8e6f96e Version 3.4.2 released.
John W. Eaton <jwe@octave.org>
parents: 12768
diff changeset
36 OCTAVE_RELEASE_DATE="2011-06-24"
12135
ddd4ef7934fc update version info to 3.5.0+ after branch for release
John W. Eaton <jwe@octave.org>
parents: 11576
diff changeset
37 OCTAVE_COPYRIGHT="Copyright (C) 2011 John W. Eaton and others."
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
38 AC_SUBST(OCTAVE_VERSION)
9917
c1210502785b provide OCTAVE_API_VERSION_NUMBER
John W. Eaton <jwe@octave.org>
parents: 9915
diff changeset
39 AC_SUBST(OCTAVE_API_VERSION_NUMBER)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
40 AC_SUBST(OCTAVE_API_VERSION)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
41 AC_SUBST(OCTAVE_RELEASE_DATE)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
42 AC_SUBST(OCTAVE_COPYRIGHT)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
43
7451
663315fc5820 [project @ 2008-02-06 10:22:48 by jwe]
jwe
parents: 7361
diff changeset
44 AC_REVISION($Revision: 1.603 $)
9909
f8a5863ae243 require autoconf 2.62
John W. Eaton <jwe@octave.org>
parents: 9906
diff changeset
45 AC_PREREQ([2.62])
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
46 AC_CONFIG_SRCDIR([src/octave.cc])
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9892
diff changeset
47 AC_CONFIG_HEADER([config.h])
9946
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
48 AC_CONFIG_AUX_DIR([build-aux])
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
49 AC_CONFIG_MACRO_DIR([m4])
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
50
9946
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
51 AM_INIT_AUTOMAKE([1.11 tar-ustar])
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
52
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
53 OCTAVE_HOST_TYPE
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
54
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
55 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
56
6090
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
57 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
58 ### 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
59 ### 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
60 case "$canonical_host_type" in
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
61 *-*-msdosmsvc)
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
62 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
63 cat << \EOF > unistd.h
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
64 /* File generated by configure script. */
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
65 #include <direct.h>
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
66 #include <io.h>
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
67 #include <process.h>
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
68 EOF
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
69 CPPFLAGS="-I. $CPPFLAGS"
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
70 ;;
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
71 esac
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
72
9091
45c832e9976d configure.in: require autoconf 2.60; eliminate some obsolete macros
John W. Eaton <jwe@octave.org>
parents: 9090
diff changeset
73 AC_USE_SYSTEM_EXTENSIONS
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
74
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
75 ### Check for MSVC
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
76 have_msvc=no
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
77 case "$canonical_host_type" in
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
78 *-*-msdosmsvc)
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
79 have_msvc=yes
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
80 ;;
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
81 *-*-mingw*)
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
82 AC_MSG_CHECKING([for MSVC compiler])
12743
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
83 AC_PREPROC_IFELSE([AC_LANG_SOURCE([
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
84 #ifndef _MSC_VER
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
85 #error "Not MSVC compiler"
12743
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
86 #endif
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
87 ])], have_msvc=yes, have_msvc=no)
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
88 AC_MSG_RESULT([$have_msvc])
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
89 ;;
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
90 esac
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
91
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
92 ### Path separator.
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
93 sepchar=:
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
94 AC_ARG_WITH(sepchar,
5842
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
95 [AS_HELP_STRING([--with-sepchar=<char>],
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
96 [use <char> as the path separation character])])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
97 case $with_sepchar in
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
98 yes | "")
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
99 case "$canonical_host_type" in
6090
ee50f74d1dd7 [project @ 2006-10-25 21:08:53 by jwe]
jwe
parents: 6089
diff changeset
100 *-*-mingw* | *-*-msdosmsvc)
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
101 sepchar=';'
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
102 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
103 esac
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
104 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
105 no)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
106 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
107 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
108 *)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
109 sepchar=$with_sepchar
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
110 ;;
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
111 esac
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
112 AC_SUBST(sepchar)
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
113 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
114 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
115
2223
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2162
diff changeset
116 ### some defaults
57429a64a466 [project @ 1996-05-17 08:06:01 by jwe]
jwe
parents: 2162
diff changeset
117
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
118 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1')
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
119 OCTAVE_SET_DEFAULT(man1ext, '.1')
8940
6994961bf1f4 use doc-cache instead of DOC for doc cache file name
John W. Eaton <jwe@octave.org>
parents: 8938
diff changeset
120 OCTAVE_SET_DEFAULT(doc_cache_file, '$(octetcdir)/doc-cache')
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
121 OCTAVE_SET_DEFAULT(infofile, '$(infodir)/octave.info')
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
122 OCTAVE_SET_DEFAULT(octincludedir, '$(includedir)/octave-$(version)/octave')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
123 OCTAVE_SET_DEFAULT(fcnfiledir, '$(datadir)/octave/$(version)/m')
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
124 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m')
4449
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4439
diff changeset
125 OCTAVE_SET_DEFAULT(localapifcnfiledir,
5778
70f67d85558d [project @ 2006-04-27 01:34:08 by jwe]
jwe
parents: 5775
diff changeset
126 '$(datadir)/octave/site/$(api_version)/m')
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
127 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m')
8719
679c270b7584 install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents: 8698
diff changeset
128 OCTAVE_SET_DEFAULT(octetcdir, '$(datadir)/octave/$(version)/etc')
12710
762d10c77277 maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents: 12538
diff changeset
129 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave/$(version)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
130 OCTAVE_SET_DEFAULT(archlibdir,
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
131 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
132 OCTAVE_SET_DEFAULT(localarchlibdir,
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
133 '$(libexecdir)/octave/site/exec/$(canonical_host_type)')
5909
a6a2423a9c25 [project @ 2006-07-27 19:35:22 by jwe]
jwe
parents: 5904
diff changeset
134 OCTAVE_SET_DEFAULT(localapiarchlibdir,
a6a2423a9c25 [project @ 2006-07-27 19:35:22 by jwe]
jwe
parents: 5904
diff changeset
135 '$(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
136 OCTAVE_SET_DEFAULT(localverarchlibdir,
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
137 '$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
138 OCTAVE_SET_DEFAULT(octfiledir,
12710
762d10c77277 maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents: 12538
diff changeset
139 '$(libdir)/octave/$(version)/oct/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
140 OCTAVE_SET_DEFAULT(localoctfiledir,
12710
762d10c77277 maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents: 12538
diff changeset
141 '$(libdir)/octave/site/oct/$(canonical_host_type)')
4449
e2c91da0aa16 [project @ 2003-07-09 02:21:11 by jwe]
jwe
parents: 4439
diff changeset
142 OCTAVE_SET_DEFAULT(localapioctfiledir,
12710
762d10c77277 maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents: 12538
diff changeset
143 '$(libdir)/octave/site/oct/$(api_version)/$(canonical_host_type)')
3597
26662775f4e9 [project @ 2000-02-12 02:24:41 by jwe]
jwe
parents: 3475
diff changeset
144 OCTAVE_SET_DEFAULT(localveroctfiledir,
12710
762d10c77277 maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents: 12538
diff changeset
145 '$(libdir)/octave/$(version)/site/oct/$(canonical_host_type)')
3029
9ce32027e269 [project @ 1997-06-05 06:39:06 by jwe]
jwe
parents: 3024
diff changeset
146 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib')
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
147
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
148 ### Find pkg-config executable (sets $PKG_CONFIG)
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
149
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
150 PKG_PROG_PKG_CONFIG
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
151
2155
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
152 ### Make configure args available for other uses.
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
153
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
154 config_opts=$ac_configure_args
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
155 AC_SUBST(config_opts)
85fd0a6f3c97 [project @ 1996-05-13 09:02:48 by jwe]
jwe
parents: 2140
diff changeset
156
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
157 ### 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
158 ### 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
159 ### bit, so it is turned off by default.
2108
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
160
2450
c196b6a780b3 [project @ 1996-10-30 23:15:55 by jwe]
jwe
parents: 2439
diff changeset
161 BOUNDS_CHECKING=false
2108
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
162 AC_ARG_ENABLE(bounds-check,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
163 [AS_HELP_STRING([--enable-bounds-check],
7091
5608935ff522 [project @ 2007-10-31 21:26:39 by jwe]
jwe
parents: 7067
diff changeset
164 [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
165 [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
166 if $BOUNDS_CHECKING; then
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
167 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
168 fi
2b67abb63030 [project @ 1996-04-30 10:44:17 by jwe]
jwe
parents: 2105
diff changeset
169
10092
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
170 ### Make it possible to disable running Make in the doc directory.
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
171 ### Useful for building on systems without TeX, for example.
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
172 DOCDIR=doc
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
173 AC_ARG_ENABLE(docs,
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
174 [AS_HELP_STRING([--enable-docs], [build documentation (default is yes)])],
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
175 [if test "$enableval" = no; then
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
176 DOCDIR=
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
177 warn_docs="building documentation disabled; make dist will fail"
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
178 AC_MSG_WARN([$warn_docs])
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
179 fi], [])
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
180 AC_SUBST(DOCDIR)
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
181 AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test -n "$DOCDIR"])
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
182
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
183 ### 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
184
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
185 USE_64_BIT_IDX_T=false
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
186 OCTAVE_IDX_TYPE=int
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
187 AC_ARG_ENABLE(64,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
188 [AS_HELP_STRING([--enable-64],
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
189 [(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
190 [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
191 if $USE_64_BIT_IDX_T; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
192 AC_CHECK_SIZEOF(void *)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
193 AC_CHECK_SIZEOF(int)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
194 AC_CHECK_SIZEOF(long)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
195 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
196 if test $ac_cv_sizeof_int -eq 8; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
197 OCTAVE_IDX_TYPE=int
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
198 elif test $ac_cv_sizeof_long -eq 8; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
199 OCTAVE_IDX_TYPE=long
5351
05adf9de7657 [project @ 2005-05-16 20:07:36 by dbateman]
dbateman
parents: 5337
diff changeset
200 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
201 else
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
202 warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features"
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
203 AC_MSG_WARN([$warn_64_bit])
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
204 USE_64_BIT_IDX_T=false
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
205 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
206 else
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
207 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features"
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
208 AC_MSG_WARN([$warn_64_bit])
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
209 USE_64_BIT_IDX_T=false
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
210 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
211 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
212 AC_SUBST(OCTAVE_IDX_TYPE)
9648
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
213 AC_DEFINE_UNQUOTED(OCTAVE_IDX_TYPE, $OCTAVE_IDX_TYPE,
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
214 [Define to the type of octave_idx_type (64 or 32 bit signed integer)])
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
215 if $USE_64_BIT_IDX_T; then
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
216 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
217 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
218 AC_SUBST(USE_64_BIT_IDX_T)
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
219
3215
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 3184
diff changeset
220 ### 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
221 ### 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
222 ### GNU libc, just disable them for all platforms.
bc3fdfe311a3 [project @ 1998-11-10 14:06:21 by jwe]
jwe
parents: 3184
diff changeset
223
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
224 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
225 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
226
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
227 ### 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
228
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
229 AC_PROG_CXX
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
230 AC_PROG_CXXCPP
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
231
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
232 ### Do special things for g++.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
233
2353
383ce9cdcf31 [project @ 1996-08-15 20:05:44 by jwe]
jwe
parents: 2346
diff changeset
234 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
235 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
236
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
237 case "$gxx_version" in
9178
a6375c37dad4 update config stuff to gripe with g++-3.x
Jaroslav Hajek <highegg@gmail.com>
parents: 9176
diff changeset
238 1.* | 2.[[0123456789]].* | 3.[[01234]].*)
4843
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
239 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
240 )
7b4e76100964 [project @ 2004-04-02 14:54:20 by jwe]
jwe
parents: 4816
diff changeset
241 ;;
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
242 esac
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
243
1894
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
244 CXX_VERSION=
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
245 if test -n "$gxx_version"; then
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
246 CXX_VERSION="$gxx_version"
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
247 fi
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
248 AC_SUBST(CXX_VERSION)
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
249
3107
a8dcfbf87ea3 [project @ 1997-11-19 22:34:59 by jwe]
jwe
parents: 3105
diff changeset
250 OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL
3769
7c8e3c42ed04 [project @ 2001-01-31 22:15:51 by jwe]
jwe
parents: 3740
diff changeset
251 OCTAVE_CXX_ISO_COMPLIANT_LIBRARY
5854
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
252 OCTAVE_CXX_BROKEN_REINTERPRET_CAST
3107
a8dcfbf87ea3 [project @ 1997-11-19 22:34:59 by jwe]
jwe
parents: 3105
diff changeset
253
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
254 ### 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
255
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
256 AC_PROG_CC
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
257 AC_PROG_CPP
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
258 AC_PROG_GCC_TRADITIONAL
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
259
9946
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
260 ### gnulib
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
261
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
262 gl_EARLY
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
263 gl_INIT
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
264
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
265 ### Do special things for gcc.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
266
2353
383ce9cdcf31 [project @ 1996-08-15 20:05:44 by jwe]
jwe
parents: 2346
diff changeset
267 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
268 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
269 case "$gcc_version" in
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
270 [12].*)
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
271 warn_gcc_version="gcc version $gcc_version is likely to cause problems"
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
272 AC_MSG_WARN([$warn_gcc_version])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
273 ;;
5
9c27e323492f [project @ 1993-08-08 01:29:13 by jwe]
jwe
parents:
diff changeset
274 esac
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
275
1894
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
276 CC_VERSION=
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
277 if test -n "$gcc_version"; then
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
278 CC_VERSION="$gcc_version"
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
279 fi
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
280 AC_SUBST(CC_VERSION)
fb1e50c2cb44 [project @ 1996-02-08 16:45:47 by jwe]
jwe
parents: 1885
diff changeset
281
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
282 ### 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
283
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
284 # Assume GCC.
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
285 INCLUDE_DEPS=true
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
286 DEPEND_FLAGS="-M"
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
287 DEPEND_EXTRA_SED_PATTERN=""
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
288 if test "$GCC" = yes; then
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
289 true
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
290 else
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
291 case "$canonical_host_type" in
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
292 sparc-sun-solaris2* | i386-pc-solaris2*)
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
293 DEPEND_FLAGS="-xM1"
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
294 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'"
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
295 ;;
7451
663315fc5820 [project @ 2008-02-06 10:22:48 by jwe]
jwe
parents: 7361
diff changeset
296 *-*-msdosmsvc)
663315fc5820 [project @ 2008-02-06 10:22:48 by jwe]
jwe
parents: 7361
diff changeset
297 ;;
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
298 *-*-mingw*)
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
299 if test "$have_msvc" = "no"; then
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
300 INCLUDE_DEPS=false
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
301 fi
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
302 ;;
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
303 *)
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
304 INCLUDE_DEPS=false
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
305 ;;
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
306 esac
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
307 fi
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
308 AC_SUBST(INCLUDE_DEPS)
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
309 AC_SUBST(DEPEND_FLAGS)
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
310 AC_SUBST(DEPEND_EXTRA_SED_PATTERN)
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
311
10951
97b8d462ef11 Update m4 macros.
Ben Abbott <bpabbott@mac.com>
parents: 10858
diff changeset
312 AX_PTHREAD
9970
cc7ea6083774 configure.ac: use pthread flags and libs for tests
John W. Eaton <jwe@octave.org>
parents: 9946
diff changeset
313 ### Include pthread libs and flags here in case other tests need them.
cc7ea6083774 configure.ac: use pthread flags and libs for tests
John W. Eaton <jwe@octave.org>
parents: 9946
diff changeset
314 ### They seem to be required for the OpenGL tests on Debian systems.
cc7ea6083774 configure.ac: use pthread flags and libs for tests
John W. Eaton <jwe@octave.org>
parents: 9946
diff changeset
315 LIBS="$PTHREAD_LIBS $LIBS"
cc7ea6083774 configure.ac: use pthread flags and libs for tests
John W. Eaton <jwe@octave.org>
parents: 9946
diff changeset
316 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9488
ee572cdd4b97 add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents: 9424
diff changeset
317
8560
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
318 AC_PATH_X
9915
ac711616bc03 configure.ac: fix HAVE_X definition
John W. Eaton <jwe@octave.org>
parents: 9909
diff changeset
319 if test "$have_x" = "yes"; then
8560
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
320 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
321
9049
56018fcd28b0 configure fixes
Jaroslav Hajek <highegg@gmail.com>
parents: 8998
diff changeset
322 if test "$x_includes" != "NONE"; then
8770
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
323 X11_INCFLAGS="$x_includes"
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
324 fi
8560
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
325 AC_SUBST(X11_INCFLAGS)
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
326
8770
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
327 if test -z $x_libraries; then
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
328 AC_CHECK_LIB(X11, XrmInitialize, [X11_LIBS=-lX11], [X11_LIBS=])
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
329 elif test $x_libraries != "NONE"; then
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
330 AC_CHECK_LIB(X11, XrmInitialize,
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
331 [X11_LIBS="-L$x_libraries -lX11"], [X11_LIBS=], "-L$x_libraries")
af676d09da08 Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8723
diff changeset
332 fi
8560
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
333 AC_SUBST(X11_LIBS)
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
334 fi
5cc594679cdc get display characteristics from system
John W. Eaton <jwe@octave.org>
parents: 8549
diff changeset
335
8595
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
336 ### 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
337 OCTAVE_HAVE_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>], [CGMainDisplayID ()],
8635
bef8f001032f Further improvements for OCTAVE_HAVE_FRAMEWORK and the test for the MacOSX Carbon framework.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8623
diff changeset
338 [have_framework_carbon="yes"], [have_framework_carbon="no"])
bef8f001032f Further improvements for OCTAVE_HAVE_FRAMEWORK and the test for the MacOSX Carbon framework.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8623
diff changeset
339 if test $have_framework_carbon = "yes"; then
8595
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
340 AC_DEFINE(HAVE_FRAMEWORK_CARBON, 1, [Define if framework CARBON is available.])
8771
d3382daaf4d2 Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8770
diff changeset
341 CARBON_LIBS="-Wl,-framework -Wl,Carbon"
d3382daaf4d2 Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8770
diff changeset
342 AC_MSG_NOTICE([adding -Wl,-framework -Wl,Carbon to CARBON_LIBS])
d3382daaf4d2 Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8770
diff changeset
343 AC_SUBST(CARBON_LIBS)
8595
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
344 fi
dee5d60257e4 Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents: 8577
diff changeset
345
9603
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
346 ### When compiling math for x87, problems may arise in some code comparing
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
347 ### floating-point intermediate results.
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
348 ### Generally, it helps to store the result in a local volatile variable,
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
349 ### but it also degrades performance.
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
350 ### Thus, we provide a FLOAT_TRUNCATE macro that may be defined to "volatile"
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
351 ### when compiling for x87 target, or left empty for modern SSE math, that
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
352 ### doesn't suffer from this problem at all.
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
353 AC_ARG_ENABLE(float-truncate,
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
354 [AS_HELP_STRING([--enable-float-truncate],
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
355 [enables truncating intermediate FP results.])],
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
356 [if test "$enableval" = yes; then ac_float_truncate=volatile;
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
357 else ac_float_truncate=; fi],
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
358 ac_float_truncate=)
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
359
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
360 AC_DEFINE_UNQUOTED(FLOAT_TRUNCATE, $ac_float_truncate,
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
361 [Define to volatile if you need truncating intermediate FP results])
9603
8bea4e89326f implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents: 9596
diff changeset
362
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
363 ### 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
364 ### 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
365 ###
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
366 ### On Alpha/OSF systems, we need -mieee.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
367
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
368 ieee_fp_flag=
350
52f8902e06f9 [project @ 1994-02-10 08:08:57 by jwe]
jwe
parents: 324
diff changeset
369 case "$canonical_host_type" in
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
370 ## 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
371 ## following pattern for x86.
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
372 i[[3456789]]86-*-*)
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
373 if test "$GCC" = yes; then
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
374 OCTAVE_CC_FLAG(-mieee-fp, [
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
375 ieee_fp_flag=-mieee-fp
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
376 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp"
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
377 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
378
5078
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
379 ### OCTAVE_CC_FLAG(-ffloat-store, [
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
380 ### float_store_flag=-ffloat-store
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
381 ### XTRA_CFLAGS="$XTRA_CFLAGS -ffloat-store"
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
382 ### 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
383 fi
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
384 if test "$GXX" = yes; then
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
385 OCTAVE_CXX_FLAG(-mieee-fp, [
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
386 ieee_fp_flag=-mieee-fp
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
387 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp"
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
388 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
389
5078
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
390 ### OCTAVE_CXX_FLAG(-ffloat-store, [
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
391 ### float_store_flag=-ffloat-store
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
392 ### XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ffloat-store"
1bf9abc0256b [project @ 2004-11-12 05:39:50 by jwe]
jwe
parents: 5076
diff changeset
393 ### 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
394 fi
324
7bf8cd7cafde [project @ 1994-02-02 10:58:58 by jwe]
jwe
parents: 317
diff changeset
395 ;;
3127
d6ebd123170a [project @ 1998-01-16 05:59:35 by jwe]
jwe
parents: 3126
diff changeset
396 alpha*-*-*)
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
397 if test "$GCC" = yes; then
4812
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
398 OCTAVE_CC_FLAG(-mieee, [
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
399 ieee_fp_flag=-mieee
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
400 XTRA_CFLAGS="$XTRA_CFLAGS -mieee"
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
401 AC_MSG_NOTICE([adding -mieee to XTRA_CFLAGS])])
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
402 else
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
403 OCTAVE_CC_FLAG(-ieee, [
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
404 ieee_fp_flag=-ieee
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
405 XTRA_CFLAGS="$XTRA_CFLAGS -ieee"
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
406 AC_MSG_NOTICE([adding -ieee to XTRA_CFLAGS])])
5076
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
407 fi
dc5f6082aa74 [project @ 2004-11-12 03:49:26 by jwe]
jwe
parents: 4971
diff changeset
408 if test "$GXX" = yes; then
4812
5997796932b1 [project @ 2004-03-03 19:27:58 by jwe]
jwe
parents: 4786
diff changeset
409 OCTAVE_CXX_FLAG(-mieee, [
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
410 ieee_fp_flag=-mieee
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
411 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee"
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
412 AC_MSG_NOTICE([adding -mieee to XTRA_CXXFLAGS])])
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
413 else
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
414 OCTAVE_CXX_FLAG(-ieee, [
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
415 ieee_fp_flag=-ieee
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
416 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee"
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
417 AC_MSG_NOTICE([adding -ieee to XTRA_CXXFLAGS])])
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
418 fi
2020
8e393fad9362 [project @ 1996-03-22 12:21:44 by jwe]
jwe
parents: 2019
diff changeset
419 ;;
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3174
diff changeset
420 *ibm-aix4*)
3351
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
421 OCTAVE_CC_FLAG(-mminimal-toc, [
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
422 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"])
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3174
diff changeset
423
3351
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
424 OCTAVE_CXX_FLAG(-mminimal-toc, [
8623649c967c [project @ 1999-11-15 16:17:01 by jwe]
jwe
parents: 3310
diff changeset
425 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"])
3176
fccab8e7d35f [project @ 1998-05-18 20:33:31 by jwe]
jwe
parents: 3174
diff changeset
426 ;;
324
7bf8cd7cafde [project @ 1994-02-02 10:58:58 by jwe]
jwe
parents: 317
diff changeset
427 esac
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
428
10471
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
429 ## Test whether the compiler supports OpenMP. Experimental so disable by
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
430 ## default. Enable it with the flag --enable-openmp
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
431 USE_OPENMP=false
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
432 AC_ARG_ENABLE(openmp,
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
433 [AS_HELP_STRING([--enable-openmp],
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
434 [(EXPERIMENTAL) use OpenMP SMP multi-threading])],
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
435 [if test "$enableval" = yes; then USE_OPENMP=true; fi], [])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
436 if $USE_OPENMP; then
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
437 case "$canonical_host_type" in
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
438 *-*-mingw* | *-*-cygwin* | *-*-gnu*)
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
439 OCTAVE_CHECK_OPENMP(-fopenmp)
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
440 ;;
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
441 *-*-msdosmsvc)
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
442 ## FIXME is this the right flag for MSVC?
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
443 OCTAVE_CHECK_OPENMP(-openmp)
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
444 ;;
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
445 ## Add other compilers supporting OpenMP here
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
446 esac
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
447 fi
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
448
3126
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
449 AC_SUBST(XTRA_CFLAGS)
0f6ec7b761a6 [project @ 1998-01-16 05:15:43 by jwe]
jwe
parents: 3124
diff changeset
450 AC_SUBST(XTRA_CXXFLAGS)
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
451
10346
65d5776379c3 Reduce the amount of stuff included by windows.h and avoid min/max being #define-d
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10341
diff changeset
452 ## Avoid #define of min/max from windows.h header
65d5776379c3 Reduce the amount of stuff included by windows.h and avoid min/max being #define-d
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10341
diff changeset
453 if test "$have_msvc" = "yes"; then
65d5776379c3 Reduce the amount of stuff included by windows.h and avoid min/max being #define-d
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10341
diff changeset
454 AC_DEFINE(NOMINMAX, 1, [Define if you want to avoid min/max macro definition in Windows headers])
65d5776379c3 Reduce the amount of stuff included by windows.h and avoid min/max being #define-d
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10341
diff changeset
455 fi
65d5776379c3 Reduce the amount of stuff included by windows.h and avoid min/max being #define-d
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10341
diff changeset
456
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
457 ### 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
458
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
459 case "$canonical_host_type" in
3127
d6ebd123170a [project @ 1998-01-16 05:59:35 by jwe]
jwe
parents: 3126
diff changeset
460 alpha*-dec-osf1.3)
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
461 LD_STATIC_FLAG=-static
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
462 ;;
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
463 esac
1679
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
464 if test -n "$LD_STATIC_FLAG"; then
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
465 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
466 fi
7dbdf23e1d18 [project @ 1995-12-30 03:32:34 by jwe]
jwe
parents: 1668
diff changeset
467 AC_SUBST(LD_STATIC_FLAG)
1667
f1b5a5086e46 [project @ 1995-12-26 04:14:18 by jwe]
jwe
parents: 1664
diff changeset
468
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
469 ### 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
470 ### 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
471 ### 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
472 ### 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
473
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
474 if test "$cross_compiling" = yes; then
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
475 BUILD_CC="gcc"
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
476 BUILD_CFLAGS="-O2 -g"
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
477 BUILD_CXX="g++"
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
478 BUILD_CXXFLAGS="-O2 -g"
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
479 BUILD_LDFLAGS=""
4098
8496ae60db8a [project @ 2002-10-10 05:20:20 by jwe]
jwe
parents: 4094
diff changeset
480 BUILD_EXEEXT=""
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
481 else
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
482 BUILD_CC='$(CC)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
483 BUILD_CFLAGS='$(CFLAGS)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
484 BUILD_CXX='$(CXX)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
485 BUILD_CXXFLAGS='$(CXXFLAGS)'
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
486 BUILD_LDFLAGS='$(LDFLAGS)'
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
487 case "$canonical_host_type" in
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
488 sparc-sun-solaris2*)
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
489 if test "$GCC" != yes; then
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
490 ## The Sun C++ compiler never seems to complete compiling
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
491 ## gendoc.cc unless we reduce the optimization level...
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
492 BUILD_CXXFLAGS="-g -O1"
4284
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
493 fi
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
494 ;;
75ed329c117b [project @ 2003-01-04 06:20:07 by jwe]
jwe
parents: 4283
diff changeset
495 esac
4298
055d2f68d445 [project @ 2003-01-13 15:09:31 by jwe]
jwe
parents: 4285
diff changeset
496 BUILD_EXEEXT='$(EXEEXT)'
4094
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
497 fi
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
498
3e631060ab8f [project @ 2002-10-09 02:12:30 by jwe]
jwe
parents: 4092
diff changeset
499 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
500 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
501 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
502 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
503 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
504 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
505
3232
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
506 dnl This is bogus. We shouldn't have to explicitly add libc too!
9596
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
507 dnl Keep this check before the check for the Fortran compiler,
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
508 dnl in case -lm is needed to compile Fortran programs.
3232
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
509
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
510 ### 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
511
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
512 case "$canonical_host_type" in
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
513 *-*-linux*)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
514 AC_CHECK_LIB(m, sin, , , -lc)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
515 ;;
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
516 *)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
517 AC_CHECK_LIB(m, sin)
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
518 ;;
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
519 esac
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
520
9596
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
521 ## Default FFLAGS is -O.
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
522 if test "x$FFLAGS" = x; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
523 FFLAGS="-O"
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
524 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
525
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
526 ## the F77 variable, if set, overrides AC_PROG_F77 automatically
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
527 AC_PROG_F77
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
528 AC_F77_LIBRARY_LDFLAGS
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
529 AC_F77_DUMMY_MAIN
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
530 AC_F77_WRAPPERS
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
531
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
532 F77_TOLOWER=true
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
533 F77_APPEND_UNDERSCORE=true
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
534 F77_APPEND_EXTRA_UNDERSCORE=true
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
535
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
536 case "$ac_cv_f77_mangling" in
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
537 "upper case") F77_TOLOWER=false ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
538 esac
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
539 case "$ac_cv_f77_mangling" in
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
540 "no underscore") F77_APPEND_UNDERSCORE=false ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
541 esac
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
542 case "$ac_cv_f77_mangling" in
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
543 "no extra underscore") F77_APPEND_EXTRA_UNDERSCORE=false ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
544 esac
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
545
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
546 case "$canonical_host_type" in
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
547 i[[3456789]]86-*-*)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
548 if test "$ac_cv_f77_compiler_gnu" = yes; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
549 OCTAVE_F77_FLAG(-mieee-fp)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
550 ### OCTAVE_F77_FLAG(-ffloat-store)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
551 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
552 ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
553 alpha*-*-*)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
554 if test "$ac_cv_f77_compiler_gnu" = yes; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
555 OCTAVE_F77_FLAG(-mieee)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
556 else
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
557 OCTAVE_F77_FLAG(-ieee)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
558 OCTAVE_F77_FLAG(-fpe1)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
559 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
560 ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
561 powerpc-apple-machten*)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
562 FFLAGS=
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
563 ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
564 esac
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
565
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
566 if test -n "$FFLAGS"; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
567 AC_MSG_NOTICE([defining FFLAGS to be $FFLAGS])
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
568 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
569
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
570 AC_SUBST(F77_TOLOWER)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
571 AC_SUBST(F77_APPEND_UNDERSCORE)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
572 AC_SUBST(F77_APPEND_EXTRA_UNDERSCORE)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
573
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
574 if test -z "$F77"; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
575 AC_MSG_ERROR([in order to build octave, you must have a compatible Fortran compiler or wrapper script for f2c that functions as a Fortran compiler installed and in your path. See the file INSTALL for more information.])
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
576 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
577
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
578 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
579 if test "x$octave_cv_fortran_integer_size" = xno; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
580 if $USE_64_BIT_IDX_T; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
581 case "$F77" in
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
582 *gfortran*)
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
583 case "$F77_INTEGER_8_FLAG" in
9596
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
584 *-fdefault-integer-8*)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
585 ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
586 *)
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
587 case "$FFLAGS" in
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
588 *-fdefault-integer-8*)
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
589 AC_MSG_NOTICE([setting -fdefault-integer-8 in F77_INTEGER_8_FLAG instead of FFLAGS])
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
590 FFLAGS=`echo $FFLAGS | sed 's/-fdefault-integer-8//g'`
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
591 F77_INTEGER_8_FLAG="-fdefault-integer-8"
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
592 ;;
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
593 *)
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
594 AC_MSG_NOTICE([adding -fdefault-integer-8 to F77_INTEGER_8_FLAG])
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
595 F77_INTEGER_8_FLAG="-fdefault-integer-8"
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
596 ## Invalidate the cache and try again.
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
597 $as_unset octave_cv_fortran_integer_size
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
598 ;;
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
599 esac
9596
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
600 ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
601 esac
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
602 ;;
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
603 esac
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
604 if test -z "$octave_cv_fortran_integer_size"; then
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
605 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
606 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
607 if test "x$octave_cv_fortran_integer_size" = xno; then
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
608 AC_MSG_ERROR([in order to build octave with 64-bit indexing support your Fortran compiler must have an option for setting the default integer size to 8 bytes. See the file INSTALL for more information.])
9596
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
609 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
610 else
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
611 AC_MSG_ERROR([your Fortran compiler must have an option to make integers the same size as octave_idx_type ($OCTAVE_IDX_TYPE). See the file INSTALL for more information.])
9596
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
612 fi
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
613 fi
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
614 AC_SUBST(F77_INTEGER_8_FLAG)
9596
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
615
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
616 FC=$F77
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
617 AC_SUBST(FC)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
618
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
619 OCTAVE_F77_FLAG(-ffloat-store, [
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
620 AC_MSG_RESULT([setting F77_FLOAT_STORE_FLAG to -ffloat-store])
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
621 F77_FLOAT_STORE_FLAG=-ffloat-store
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
622 AC_SUBST(F77_FLOAT_STORE_FLAG)
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
623 ])
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
624
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
625 OCTAVE_IEEE754_DATA_FORMAT
f26229391ea1 configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents: 9583
diff changeset
626
10380
60acc47c203f configure checks for complex element setter/reference accessor methods
John W. Eaton <jwe@octave.org>
parents: 10346
diff changeset
627 OCTAVE_CXX_COMPLEX_SETTERS
60acc47c203f configure checks for complex element setter/reference accessor methods
John W. Eaton <jwe@octave.org>
parents: 10346
diff changeset
628 OCTAVE_CXX_COMPLEX_REFERENCE_ACCESSORS
60acc47c203f configure checks for complex element setter/reference accessor methods
John W. Eaton <jwe@octave.org>
parents: 10346
diff changeset
629
6823
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
630 ### Check for the QHull library
9fddcc586065 [project @ 2007-08-24 08:27:27 by dbateman]
dbateman
parents: 6806
diff changeset
631
9519
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
632 OCTAVE_CHECK_LIBRARY(qhull, QHull,
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
633 [Qhull library not found -- this will result in loss of functionality of some geometry functions.],
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
634 [qhull/qhull_a.h], [qh_qhull], [], [],
9519
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
635 [warn_qhull=
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
636 OCTAVE_CHECK_QHULL_VERSION
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
637 OCTAVE_CHECK_QHULL_OK([TEXINFO_QHULL="@set HAVE_QHULL"
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
638 AC_DEFINE(HAVE_QHULL, 1, [Define if QHull is available.])], [
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
639 warn_qhull="Qhull library found, but seems not to work properly -- this will result in loss of functionality of some geometry functions. Please try recompiling the library with -fno-strict-aliasing."])])
6855
a052825889a0 [project @ 2007-09-01 00:08:16 by dbateman]
dbateman
parents: 6829
diff changeset
640
12464
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
641 ### Check for pcre regex library.
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
642
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
643 REGEX_LIBS=
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
644
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
645 pcre_fail_msg="to build Octave, you must have the PCRE library and header files installed"
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
646
12464
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
647 ## NB: no need to do separate check for pcre.h header -- checking
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
648 ## macros is good enough
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
649 AC_CACHE_CHECK([whether pcre.h defines the macros we need],
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
650 [ac_cv_pcre_h_macros_present],
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
651 [AC_EGREP_CPP([PCRE_HAS_MACROS_WE_NEED], [
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
652 #include <pcre.h>
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
653 #if defined (PCRE_INFO_NAMECOUNT) \
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
654 && defined (PCRE_INFO_NAMEENTRYSIZE) \
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
655 && defined (PCRE_INFO_NAMETABLE)
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
656 PCRE_HAS_MACROS_WE_NEED
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
657 #endif], ac_cv_pcre_h_macros_present=yes, ac_cv_pcre_h_macros_present=no)])
7169
f83b2ca41b05 [project @ 2007-11-13 17:17:38 by jwe]
jwe
parents: 7155
diff changeset
658
12464
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
659 if test $ac_cv_pcre_h_macros_present = yes; then
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
660 ## check for pcre-config, and if so, set XTRA_CXXFLAGS appropriately
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
661 AC_CHECK_PROG(HAVE_PCRE_CONFIG, pcre-config, [yes], [no])
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
662 if test $HAVE_PCRE_CONFIG = yes; then
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
663 XTRA_CXXFLAGS="$XTRA_CXXFLAGS `pcre-config --cflags`"
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
664 REGEX_LIBS="`pcre-config --libs`"
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
665 else
12464
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
666 REGEX_LIBS="-lpcre"
7173
ff2ff2c09865 [project @ 2007-11-14 18:20:49 by jwe]
jwe
parents: 7169
diff changeset
667 fi
8621
f1534e248260 configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents: 8618
diff changeset
668 save_LIBS="$LIBS"
f1534e248260 configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents: 8618
diff changeset
669 LIBS="$REGEX_LIBS $LIBS"
12464
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
670 AC_CHECK_FUNCS(pcre_compile,
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
671 [AC_SUBST(REGEX_LIBS)],
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
672 [AC_MSG_ERROR([$pcre_fail_msg])])
8621
f1534e248260 configure.in: check for pcre_compile, don't check for other regex functions if pcre library is found
John W. Eaton <jwe@octave.org>
parents: 8618
diff changeset
673 LIBS="$save_LIBS"
7174
ff4a4cc863a9 [project @ 2007-11-14 19:16:12 by jwe]
jwe
parents: 7173
diff changeset
674 else
12464
dfeea9cae79e require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents: 12451
diff changeset
675 AC_MSG_ERROR([$pcre_fail_msg])
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
676 fi
7169
f83b2ca41b05 [project @ 2007-11-13 17:17:38 by jwe]
jwe
parents: 7155
diff changeset
677
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
678 ### Check for ZLIB library.
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
679
9538
d0239bddf621 use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents: 9536
diff changeset
680 OCTAVE_CHECK_LIBRARY(z, ZLIB,
d0239bddf621 use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents: 9536
diff changeset
681 [ZLIB library not found. Octave will not be able to save or load compressed data files or HDF5 files.],
d0239bddf621 use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents: 9536
diff changeset
682 [zlib.h], [gzclearerr])
3687
b5a285d1c1f4 [project @ 2000-06-29 21:33:00 by jwe]
jwe
parents: 3673
diff changeset
683
9538
d0239bddf621 use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents: 9536
diff changeset
684 ### Check for HDF5 library.
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
685
9542
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
686 save_CPPFLAGS="$CPPFLAGS"
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
687 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS"
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
688 save_LIBS="$LIBS"
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
689 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS"
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
690 OCTAVE_CHECK_LIBRARY(hdf5, HDF5,
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
691 [HDF5 library not found. Octave will not be able to save or load HDF5 data files.],
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
692 [hdf5.h], [H5Gget_num_objs], [], [],
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
693 [warn_hdf5=
9892
ac69e6f4b33d Add HDF5-1.8 compatibility while maintaining compatibility with HDF5-1.6 versions
Kacper Kowalik <xarthisius.kk@gmail.com>
parents: 9882
diff changeset
694 OCTAVE_HDF5_HAS_ENFORCED_16_API
ac69e6f4b33d Add HDF5-1.8 compatibility while maintaining compatibility with HDF5-1.6 versions
Kacper Kowalik <xarthisius.kk@gmail.com>
parents: 9882
diff changeset
695 TEXINFO_HDF5="@set HAVE_HDF5"
ac69e6f4b33d Add HDF5-1.8 compatibility while maintaining compatibility with HDF5-1.6 versions
Kacper Kowalik <xarthisius.kk@gmail.com>
parents: 9882
diff changeset
696 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available and newer than version 1.6.])
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
697 if test "$have_msvc" = "yes"; then
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
698 OCTAVE_HDF5_DLL
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
699 fi
9892
ac69e6f4b33d Add HDF5-1.8 compatibility while maintaining compatibility with HDF5-1.6 versions
Kacper Kowalik <xarthisius.kk@gmail.com>
parents: 9882
diff changeset
700 ])
9542
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
701 CPPFLAGS="$save_CPPFLAGS"
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
702 LIBS="$save_LIBS"
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
703
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
704
9542
f5ec5dc66824 use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents: 9540
diff changeset
705 # Subdirectory of libcruft to build if fftw is not found:
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
706
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
707 FFT_DIR="fftpack"
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
708 AC_SUBST(FFT_DIR)
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
709
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
710 # Checks for FFTW header and library.
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
711
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
712 OCTAVE_CHECK_LIBRARY(fftw3, FFTW3,
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
713 [FFTW3 library not found. The slower FFTPACK library will be used instead.],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
714 [fftw3.h], [fftw_plan_dft_1d])
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
715
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
716 OCTAVE_CHECK_LIBRARY(fftw3f, FFTW3F,
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
717 [FFTW3F library not found. The slower FFTPACK library will be used instead.],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
718 [fftw3.h], [fftwf_plan_dft_1d])
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
719
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
720 AM_CONDITIONAL([AMCOND_HAVE_FFTW],
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
721 [test -n "$FFTW3_LIBS" && test -n "$FFTW3F_LIBS"])
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
722
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
723 # Checks for GLPK header and library.
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
724
9540
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
725 save_CPPFLAGS="$CPPFLAGS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
726 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
727 save_LIBS="$LIBS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
728 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS"
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
729 OCTAVE_CHECK_LIBRARY(glpk, GLPK,
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
730 [GLPK library not found. The glpk function for solving linear programs will be disabled.],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
731 [glpk/glpk.h glpk.h], [_glp_lpx_simplex])
9540
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
732 LIBS="$save_LIBS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
733 CPPFLAGS="$save_CPPFLAGS"
5235
5f0ad69b5c8c [project @ 2005-03-22 19:48:16 by jwe]
jwe
parents: 5226
diff changeset
734
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
735 # Checks for CURL header and library.
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
736
9540
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
737 save_CPPFLAGS="$CPPFLAGS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
738 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
739 save_LIBS="$LIBS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
740 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS"
9519
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
741 OCTAVE_CHECK_LIBRARY(curl, cURL,
9880
7f77e5081e83 Add ftp objects
David Bateman <dbateman@free.fr>
parents: 9846
diff changeset
742 [cURL library not found. The ftp objects, urlread and urlwrite functions will be disabled.],
9519
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
743 [curl/curl.h], [curl_easy_escape])
9540
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
744 LIBS="$save_LIBS"
79b5fe2d5646 use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents: 9538
diff changeset
745 CPPFLAGS="$save_CPPFLAGS"
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
746
11040
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
747 ### Graphics/ImageMagick++
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
748
11216
5036b0ff9597 configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents: 11214
diff changeset
749 AC_ARG_WITH([magick],
5036b0ff9597 configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents: 11214
diff changeset
750 [AS_HELP_STRING([--with-magick=LIB],
11041
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
751 [select library to use for image I/O (options: GraphicsMagick(default) or ImageMagick)])], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
752 magick="$withval"], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
753 magick="GraphicsMagick"])
11040
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
754
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
755 warn_magick="$magick++ library not found. The imread function for reading image files will not be fully functional."
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
756
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
757 MAGICK_CPPFLAGS=
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
758 MAGICK_LDFLAGS=
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
759 MAGICK_LIBS=
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
760
11040
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
761 PKG_CHECK_EXISTS([$magick++], [
11041
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
762 ## Make sure we only get -I, -L and -l flags. Some Graphics/ImageMagick++
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
763 ## packages adds extra flags that are useful when building
11041
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
764 ## Graphics/ImageMagick++ extentions. These extra flags break the
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
765 ## Octave build.
11040
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
766 MAGICK_LDFLAGS=`$PKG_CONFIG --libs-only-L $magick++`
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
767 MAGICK_LIBS=`$PKG_CONFIG --libs-only-l $magick++`
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
768 MAGICK_CPPFLAGS=`$PKG_CONFIG --cflags-only-I $magick++`
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
769
11040
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
770 warn_magick="$magick++ library fails tests. The imread function for reading image files will not be fully functional."
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
771
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
772 save_CPPFLAGS="$CPPFLAGS"
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
773 save_LIBS="$LIBS"
9583
8dc1531e2149 correctly save and restore LIBS and CPPFLAGS when checking for GraphicsMagick++
John W. Eaton <jwe@octave.org>
parents: 9575
diff changeset
774 CPPFLAGS="$MAGICK_CPPFLAGS $CPPFLAGS"
8dc1531e2149 correctly save and restore LIBS and CPPFLAGS when checking for GraphicsMagick++
John W. Eaton <jwe@octave.org>
parents: 9575
diff changeset
775 LIBS="$MAGICK_LDFLAGS $MAGICK_LIBS $LIBS"
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
776 AC_LANG_PUSH(C++)
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
777 AC_CHECK_HEADER([Magick++.h], [
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
778 AC_MSG_CHECKING([for Magick::ColorRGB in Magick++.h])
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
779 AC_TRY_LINK([#include <Magick++.h>], [Magick::ColorRGB c;], [
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
780 AC_MSG_RESULT(yes)
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
781 warn_magick=
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
782 ], [
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
783 AC_MSG_RESULT(no)
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
784 ])
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
785 ])
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
786 AC_LANG_POP(C++)
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
787 CPPFLAGS="$save_CPPFLAGS"
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
788 LIBS="$save_LIBS"
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
789 ])
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
790
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
791 if test -z "$warn_magick"; then
11040
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
792 AC_DEFINE(HAVE_MAGICK, 1, [Define if Graphics/ImageMagick++ is available.])
7937
6661387827d6 Allow build without GraphicsMagick installed
David Bateman <dbateman@free.fr>
parents: 7934
diff changeset
793 else
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
794 MAGICK_CPPFLAGS=
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
795 MAGICK_LDFLAGS=
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
796 MAGICK_LIBS=
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
797 fi
9575
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
798 AC_SUBST(MAGICK_CPPFLAGS)
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
799 AC_SUBST(MAGICK_LDFLAGS)
55ecaefb7d0f Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents: 9573
diff changeset
800 AC_SUBST(MAGICK_LIBS)
6043
199f15a8d1fc [project @ 2006-10-09 19:49:03 by jwe]
jwe
parents: 6025
diff changeset
801
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
802 # ---------------------------------------------------------------------
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
803
10858
bf000a56a985 configure.ac: Change warning messages about freetype and fontconfig
Rik <octave@nomad.inbox5.com>
parents: 10845
diff changeset
804 ## libraries needed for native graphics renderer
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
805
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
806 warn_freetype=""
7863
2a62d45fa21d added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents: 7834
diff changeset
807
11208
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
808 check_opengl=false
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
809 AC_ARG_WITH([opengl],
11214
7f19b2b6e093 Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents: 11209
diff changeset
810 [AS_HELP_STRING([--without-opengl], [don't use OpenGL libraries, disable native graphics])],
11208
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
811 [if test "x$withval" = xno; then
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
812 warn_opengl="--without-opengl specified. Native graphics will be disabled."
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
813 AC_MSG_WARN([$warn_opengl])
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
814 else
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
815 check_opengl=true
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
816 fi],
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
817 [check_opengl=true])
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
818
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
819 if $check_opengl; then
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
820 OCTAVE_OPENGL
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
821 fi
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
822
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
823 GRAPHICS_LIBS=
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
824 GRAPHICS_CFLAGS=
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
825
11214
7f19b2b6e093 Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents: 11209
diff changeset
826 if test -z "$OPENGL_LIBS"; then
7f19b2b6e093 Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents: 11209
diff changeset
827 if $check_opengl; then
7f19b2b6e093 Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents: 11209
diff changeset
828 warn_fltk_opengl="OpenGL libs (GL and GLU) not found. Native graphics will be disabled."
7f19b2b6e093 Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents: 11209
diff changeset
829 fi
7f19b2b6e093 Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents: 11209
diff changeset
830 fi
7f19b2b6e093 Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents: 11209
diff changeset
831
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
832 if test -n "$OPENGL_LIBS"; then
7954
3ffc34caec65 configure fixes
John W. Eaton <jwe@octave.org>
parents: 7953
diff changeset
833 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
834
9845
722bd8f6a750 configure.ac: fix freetype check
John W. Eaton <jwe@octave.org>
parents: 9817
diff changeset
835 ## freetype 2
722bd8f6a750 configure.ac: fix freetype check
John W. Eaton <jwe@octave.org>
parents: 9817
diff changeset
836
722bd8f6a750 configure.ac: fix freetype check
John W. Eaton <jwe@octave.org>
parents: 9817
diff changeset
837 AC_CHECK_FT2([9.0.3], [AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.])
722bd8f6a750 configure.ac: fix freetype check
John W. Eaton <jwe@octave.org>
parents: 9817
diff changeset
838 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"],
10858
bf000a56a985 configure.ac: Change warning messages about freetype and fontconfig
Rik <octave@nomad.inbox5.com>
parents: 10845
diff changeset
839 [warn_freetype="FreeType library 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
840
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
841 ## fontconfig library
9403
4af6e29449c1 [mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents: 9259
diff changeset
842
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
843 warn_fontconfig=""
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
844 if test -z "$warn_freetype"; then
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
845 PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
846 have_fontconfig=yes
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
847 OPENGL_LIBS="$FONTCONFIG_LIBS $OPENGL_LIBS"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
848 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FONTCONFIG_CFLAGS"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
849 AC_DEFINE(HAVE_FONTCONFIG, 1, [Define to 1 if fontconfig is present])], [
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
850 have_fontconfig=no
10858
bf000a56a985 configure.ac: Change warning messages about freetype and fontconfig
Rik <octave@nomad.inbox5.com>
parents: 10845
diff changeset
851 warn_fontconfig="Fontconfig library not found. Native graphics will be disabled."])
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
852 fi
9403
4af6e29449c1 [mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents: 9259
diff changeset
853
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
854 ## fltk (www.fltk.org)
11041
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
855
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
856 AC_ARG_WITH([fltk-prefix], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
857 AS_HELP_STRING([--with-fltk-prefix=PFX],
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
858 [Prefix where FLTK is installed (optional)])], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
859 fltk_prefix="$withval"], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
860 fltk_prefix=""])
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
861
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
862 AC_ARG_WITH([fltk-exec-prefix], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
863 AS_HELP_STRING([--with-fltk-exec-prefix=PFX],
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
864 [Exec prefix where FLTK is installed (optional)])], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
865 fltk_exec_prefix="$withval"], [
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
866 fltk_exec_prefix=""])
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
867
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
868 if test -n "$fltk_exec_prefix"; then
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
869 fltk_args="$fltk_args --exec-prefix=$fltk_exec_prefix"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
870 if test "x${FLTK_CONFIG+set}" != xset ; then
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
871 FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
872 fi
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
873 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
874
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
875 if test -n "$fltk_prefix"; then
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
876 fltk_args="$fltk_args --prefix=$fltk_prefix"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
877 if test x${FLTK_CONFIG+set} != xset ; then
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
878 FLTK_CONFIG="$fltk_prefix/bin/fltk-config"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
879 fi
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
880 fi
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
881
11041
696829b6445b configure.ac: style fixes
John W. Eaton <jwe@octave.org>
parents: 11040
diff changeset
882 AC_PATH_PROG([FLTK_CONFIG], [fltk-config], [no])
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
883
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
884 warn_fltk_config=""
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
885 warn_fltk_opengl=""
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
886
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
887 if test "$FLTK_CONFIG" = "no" ; then
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
888 warn_fltk_config="FLTK config script not found. Native graphics will be disabled."
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
889 else
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
890 FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
891 FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`"
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
892
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
893 case "$canonical_host_type" in
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
894 *-*-mingw*)
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
895 FLTK_LDFLAGS="`echo $FLTK_LDFLAGS | sed -e 's/-mwindows//g'`"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
896 ;;
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
897 esac
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
898
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
899 AC_MSG_CHECKING([for OpenGL support in FLTK])
12450
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
900 save_CFLAGS="$CFLAGS"
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
901 CFLAGS="$CFLAGS $FLTK_CFLAGS"
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
902 AC_COMPILE_IFELSE(
12743
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
903 [AC_LANG_PROGRAM([[#include <FL/gl.h>]], [[int nothing = 0;]])],
12450
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
904 [
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
905 AC_MSG_RESULT([no])
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
906 warn_fltk_opengl="FLTK does not have OpenGL support. Native graphics will be disabled."
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
907 ],[
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
908 AC_DEFINE(HAVE_FLTK, 1, [Define if FLTK is available])
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
909 AC_MSG_RESULT([yes])
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
910 ])
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
911
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
912 if test -z "$warn_fltk_opengl"; then
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
913 GRAPHICS_CFLAGS="$FLTK_CFLAGS"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
914 GRAPHICS_LIBS="$FLTK_LDFLAGS"
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
915 fi
12450
47612d3e7077 use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 12336
diff changeset
916 CFLAGS="$save_CFLAGS"
10571
2ceb8e013597 add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents: 10471
diff changeset
917 fi
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
918 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
919
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
920 AC_SUBST(GRAPHICS_CFLAGS)
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
921 AC_SUBST(GRAPHICS_LIBS)
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
922
3827
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
923 # ----------------------------------------------------------------------
ba548facf43b [project @ 2001-05-02 06:15:06 by jwe]
jwe
parents: 3825
diff changeset
924
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
925 OCTAVE_PROG_AR
3012
0ea30e0e86cc [project @ 1997-06-02 18:57:07 by jwe]
jwe
parents: 3008
diff changeset
926
9801
13868ea67c71 configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents: 9799
diff changeset
927 ifdef([LT_INIT], [], [
13868ea67c71 configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents: 9799
diff changeset
928 errprint([error: you must have libtool 2.2.2 or a more recent version
13868ea67c71 configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents: 9799
diff changeset
929 ])
13868ea67c71 configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents: 9799
diff changeset
930 m4exit([1])])
13868ea67c71 configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents: 9799
diff changeset
931
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
932 LT_PREREQ([2.2.2])
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
933 LT_INIT([disable-static dlopen win32-dll])
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
934
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
935 if test x$enable_shared = xyes; then
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
936 SHARED_LIBS=true
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
937 else
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
938 SHARED_LIBS=false
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
939 fi
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
940
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
941 if test x$enable_static = xyes; then
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
942 STATIC_LIBS=true
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
943 else
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
944 STATIC_LIBS=false
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
945 fi
3012
0ea30e0e86cc [project @ 1997-06-02 18:57:07 by jwe]
jwe
parents: 3008
diff changeset
946
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
947 XTRA_CRUFT_SH_LDFLAGS=
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
948 if test "$have_msvc" = "yes"; then
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
949 FLIBS="$FLIBS -lkernel32"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
950 XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
951 fi
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
952 AC_SUBST(XTRA_CRUFT_SH_LDFLAGS)
6102
ef9569e10d8b [project @ 2006-10-26 20:50:04 by jwe]
jwe
parents: 6100
diff changeset
953
3820
f0ab8a324da7 [project @ 2001-04-24 16:06:59 by jwe]
jwe
parents: 3805
diff changeset
954 ### Checks for BLAS and LAPACK libraries:
10721
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
955
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
956 ## Need to adjust FFLAGS to include correct integer size.
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
957 save_FFLAGS="$FFLAGS"
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
958 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG"
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
959
10951
97b8d462ef11 Update m4 macros.
Ben Abbott <bpabbott@mac.com>
parents: 10858
diff changeset
960 AX_BLAS_WITH_F77_FUNC([:], [:])
97b8d462ef11 Update m4 macros.
Ben Abbott <bpabbott@mac.com>
parents: 10858
diff changeset
961 AX_LAPACK([:], [:])
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
962
10721
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
963 ## Restore FFLAGS.
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
964 FFLAGS="$save_FFLAGS"
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
965
12538
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
966 ## Try again with -ff2c in FFLAGS
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
967 if test "x$ax_blas_f77_func_ok" = "xno"; then
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
968 save_FFLAGS="$FFLAGS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
969 FFLAGS="-ff2c $FFLAGS $F77_INTEGER_8_FLAG"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
970
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
971 AX_BLAS_WITH_F77_FUNC([:], [:])
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
972 AX_LAPACK([:], [:])
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
973
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
974 ## Restore FFLAGS, with -ff2c if that was helpful
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
975
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
976 if test "x$ax_blas_f77_func_ok" = "xno"; then
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
977 FFLAGS="$save_FFLAGS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
978 else
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
979 FFLAGS="-ff2c $save_FFLAGS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
980 fi
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
981 fi
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
982
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
983 ## On OSX, try again with a wrapper library (without -ff2c!)
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
984 if test "x$ax_blas_f77_func_ok" = "xno"; then
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
985 case "$canonical_host_type" in
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
986 *-*-darwin*)
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
987 ## test if wrapper functions help
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
988 octave_blaswrap_save_CFLAGS="$CFLAGS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
989 CFLAGS="$CFLAGS -DUSE_BLASWRAP"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
990 AC_LANG_PUSH(C)
12743
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
991 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
992 #include "libcruft/misc/blaswrap.c"
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
993 ])],
12538
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
994 [mv conftest.$ac_objext blaswrap.$ac_objext
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
995 octave_blaswrap_save_BLAS_LIBS="$BLAS_LIBS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
996 BLAS_LIBS="blaswrap.$ac_objext -framework vecLib"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
997
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
998 save_FFLAGS="$FFLAGS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
999 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1000
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1001 AX_BLAS_WITH_F77_FUNC([:], [:])
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1002 AX_LAPACK([:], [:])
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1003
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1004 ## Restore FFLAGS.
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1005 FFLAGS="$save_FFLAGS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1006
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1007 ## remove temp file
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1008 rm -f blaswrap.$ac_objext],
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1009 [AC_MSG_FAILURE([cannot compile libcruft/misc/blaswrap.c])])
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1010 AC_LANG_POP(C)
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1011 CFLAGS="$octave_blaswrap_save_CFLAGS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1012
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1013 if test "x$ax_blas_f77_func_ok" = "xno"; then
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1014 BLAS_LIBS="$octave_blaswrap_save_BLAS_LIBS"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1015 else
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1016 ## wrapper in libcruft, remove from BLAS_LIBS
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1017 BLAS_LIBS="`echo $BLAS_LIBS | sed -e 's/blaswrap.[[^ ]]* //g'`"
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1018 AC_DEFINE(USE_BLASWRAP, [1], [Define this if BLAS functions need to be wrapped (potentially needed for 64-bit OSX only).])
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1019 fi
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1020 ;;
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1021 esac
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1022 fi
6a225fb7d361 Test fortran with -ff2c and with a wrapper for Apple blas/lapack, when needed.
Jarno Rajahalme <jarno.rajahalme@nsn.com>
parents: 12464
diff changeset
1023
10951
97b8d462ef11 Update m4 macros.
Ben Abbott <bpabbott@mac.com>
parents: 10858
diff changeset
1024 if test "x$ax_blas_f77_func_ok" = "xno"; then
97b8d462ef11 Update m4 macros.
Ben Abbott <bpabbott@mac.com>
parents: 10858
diff changeset
1025 if $USE_64_BIT_IDX_T && test "$ax_blas_integer_size_ok" = "no" ; then
10721
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1026 ## Attempt to be more informative.
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1027 AC_MSG_ERROR([BLAS doesn't seem to support 64-bit integers. This is incompatible with --enable-64.])
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1028 else
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1029 AC_MSG_ERROR([A BLAS library was detected but found incompatible with your Fortran 77 compiler settings.])
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1030 fi
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1031 fi
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1032
10951
97b8d462ef11 Update m4 macros.
Ben Abbott <bpabbott@mac.com>
parents: 10858
diff changeset
1033 if test x$ax_blas_ok = xno || test x$ax_lapack_ok = xno; then
9799
cfd0aa788ae1 remove reference blas and lapack sources
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
1034 AC_MSG_ERROR([You are required to have BLAS and LAPACK libraries])
cfd0aa788ae1 remove reference blas and lapack sources
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
1035 fi
3690
55e59236c5e5 [project @ 2000-06-30 20:55:36 by jwe]
jwe
parents: 3688
diff changeset
1036
10721
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1037 ### Check for the qrupdate library
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1038 ## No need to adjust FFLAGS because only link is attempted.
4906ccf5d95e use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents: 10622
diff changeset
1039 ## Must supply proper LIBS, however.
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
1040
9570
1ab56c73ec7c use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents: 9568
diff changeset
1041 save_LIBS="$LIBS"
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1042 LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS"
9570
1ab56c73ec7c use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents: 9568
diff changeset
1043 OCTAVE_CHECK_LIBRARY(qrupdate, qrupdate,
9571
263a8ed419b0 configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents: 9570
diff changeset
1044 [qrupdate not found. The QR & Cholesky updating functions will be slow.],
9570
1ab56c73ec7c use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents: 9568
diff changeset
1045 [],
9707
6f5c4c82c5fc avoid ugly F77 names in configure
Jaroslav Hajek <highegg@gmail.com>
parents: 9648
diff changeset
1046 [sqr1up],
6f5c4c82c5fc avoid ugly F77 names in configure
Jaroslav Hajek <highegg@gmail.com>
parents: 9648
diff changeset
1047 [Fortran 77], [don't use qrupdate, disable QR & Cholesky updating functions])
9708
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1048
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1049 if test "$octave_qrupdate_ok" = yes; then
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1050 LIBS="$LIBS $QRUPDATE_LIBS"
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1051 AC_LANG_PUSH([Fortran 77])
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1052 AC_MSG_CHECKING([for slup1up in $QRUPDATE_LIBS])
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1053 octave_qrupdate_luu=no
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1054 AC_LINK_IFELSE([AC_LANG_CALL([], [slup1up])],
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1055 [octave_qrupdate_luu=yes])
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1056 AC_MSG_RESULT([$octave_qrupdate_luu])
9708
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1057 if test "$octave_qrupdate_luu" = yes; then
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1058 AC_DEFINE(HAVE_QRUPDATE_LUU, [1], [Define if qrupdate supports LU updates])
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1059 fi
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1060 AC_LANG_POP([Fortran 77])
6f3ffe11d926 implement luupdate
Jaroslav Hajek <highegg@gmail.com>
parents: 9707
diff changeset
1061 fi
9570
1ab56c73ec7c use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents: 9568
diff changeset
1062 LIBS="$save_LIBS"
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
1063
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1064 # Check for AMD library
7619
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
1065
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1066 OCTAVE_CHECK_LIBRARY(amd, AMD,
9571
263a8ed419b0 configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents: 9570
diff changeset
1067 [AMD library not found. This will result in some lack of functionality for sparse matrices.],
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1068 [suitesparse/amd.h ufsparse/amd.h amd/amd.h amd.h],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1069 [amd_postorder],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1070 [], [don't use AMD library, disable some sparse matrix functionality])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1071
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
1072 # Check for CAMD library
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1073
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1074 OCTAVE_CHECK_LIBRARY(camd, CAMD,
9571
263a8ed419b0 configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents: 9570
diff changeset
1075 [CAMD library not found. This will result in some lack of functionality for sparse matrices.],
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1076 [suitesparse/camd.h ufsparse/camd.h amd/camd.h camd.h],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1077 [camd_postorder],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1078 [], [don't use CAMD library, disable some sparse matrix functionality])
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1079
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1080 # Check for COLAMD library
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1081
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1082 OCTAVE_CHECK_LIBRARY(colamd, COLAMD,
9571
263a8ed419b0 configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents: 9570
diff changeset
1083 [COLAMD library not found. This will result in some lack of functionality for sparse matrices.],
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1084 [suitesparse/colamd.h ufsparse/colamd.h amd/colamd.h colamd.h],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1085 [colamd],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1086 [], [don't use COLAMD library, disable some sparse matrix functionality])
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1087
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1088 # Check for CCOLAMD library
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1089
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1090 OCTAVE_CHECK_LIBRARY(ccolamd, CCOLAMD,
9571
263a8ed419b0 configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents: 9570
diff changeset
1091 [CCOLAMD library not found. This will result in some lack of functionality for sparse matrices.],
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1092 [suitesparse/ccolamd.h ufsparse/ccolamd.h amd/ccolamd.h ccolamd.h],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1093 [ccolamd],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1094 [], [don't use CCOLAMD library, disable some sparse matrix functionality])
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1095
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1096 # Check for CHOLMOD library. If your cholmod library requires cblas,
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1097 # then you will need to configure with --with-cholmod="-lcholmod -lcblas".
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1098
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1099 save_LIBS="$LIBS"
10332
5f6298220ced configure.ac: include colamd and amd libs in LIBS when checking for cholmod library
John W. Eaton <jwe@octave.org>
parents: 10331
diff changeset
1100 LIBS="$COLAMD_LDFLAGS $COLAMD_LIBS $AMD_LDFLAGS $AMD_LIBS $LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS"
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1101 OCTAVE_CHECK_LIBRARY(cholmod, CHOLMOD,
9571
263a8ed419b0 configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents: 9570
diff changeset
1102 [CHOLMOD library not found. This will result in some lack of functionality for sparse matrices.],
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1103 [suitesparse/cholmod.h ufsparse/cholmod.h cholmod/cholmod.h cholmod.h],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1104 [cholmod_start],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1105 [], [don't use CHOLMOD library, disable some sparse matrix functionality])
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1106 LIBS="$save_LIBS"
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1107
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1108 # Check for CXSparse library
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1109
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1110 OCTAVE_CHECK_LIBRARY(cxsparse, CXSparse,
9571
263a8ed419b0 configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents: 9570
diff changeset
1111 [CXSparse library not found. This will result in some lack of functionality for sparse matrices.],
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1112 [suitesparse/cs.h ufsparse/cs.h amd/cs.h cs.h],
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
1113 [cs_di_sqr],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1114 [C++], [don't use CXSparse library, disable some sparse matrix functionality])
6024
500d884ae373 [project @ 2006-10-03 14:27:33 by jwe]
jwe
parents: 6001
diff changeset
1115
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
1116 # Check for UMFPACK library.
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
1117
9572
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1118 save_LIBS="$LIBS"
9787
cc5bb7b5679f use AMD_CPPFLAGS when checking for UMFPACK
David Grundberg <davidg@cs.umu.se>
parents: 9763
diff changeset
1119 save_CPPFLAGS="$CPPFLAGS"
9572
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1120 LIBS="$AMD_LDFLAGS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS"
9787
cc5bb7b5679f use AMD_CPPFLAGS when checking for UMFPACK
David Grundberg <davidg@cs.umu.se>
parents: 9763
diff changeset
1121 CPPFLAGS="$AMD_CPPFLAGS $CPPFLAGS"
9572
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1122 OCTAVE_CHECK_LIBRARY(umfpack, UMFPACK,
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1123 [UMFPACK not found. This will result in some lack of functionality for sparse matrices.],
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1124 [suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h],
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1125 [umfpack_zi_get_determinant],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1126 [], [don't use UMFPACK, disable some sparse matrix functionality])
9787
cc5bb7b5679f use AMD_CPPFLAGS when checking for UMFPACK
David Grundberg <davidg@cs.umu.se>
parents: 9763
diff changeset
1127 CPPFLAGS="$save_CPPFLAGS"
9572
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1128 LIBS="$save_LIBS"
5512
7c8767d0ffc0 [project @ 2005-10-27 02:20:17 by jwe]
jwe
parents: 5508
diff changeset
1129
9572
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1130 if test -z "$UMFPACK_LIBS"; then
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1131 ## Invalidate the cache and try again with -lcblas.
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1132 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1133 save_LIBS="$LIBS"
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1134 LIBS="-lcblas $AMD_LDFLAGS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS"
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1135 OCTAVE_CHECK_LIBRARY(umfpack, UMFPACK,
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1136 [UMFPACK not found. This will result in some lack of functionality for sparse matrices.],
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1137 [suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h],
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1138 [umfpack_zi_get_determinant],
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1139 [], [don't use UMFPACK, disable some sparse matrix functionality])
9572
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1140 if test -n "$UMFPACK_LIBS"; then
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1141 UMFPACK_LIBS="$UMFPACK_LIBS -lcblas"
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1142 fi
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1143 LIBS="$save_LIBS"
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
1144 fi
5513
843fa0a80229 [project @ 2005-10-27 02:43:36 by jwe]
jwe
parents: 5512
diff changeset
1145
9572
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1146 if test -n "$UMFPACK_LIBS"; then
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1147 save_LIBS="$LIBS";
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1148 LIBS="$UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS"
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1149 OCTAVE_UMFPACK_SEPERATE_SPLIT
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1150 LIBS="$save_LIBS"
ab8a163f2052 use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents: 9571
diff changeset
1151 fi
5226
316ddaa7ae5b [project @ 2005-03-18 01:54:24 by jwe]
jwe
parents: 5222
diff changeset
1152
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1153 ### Enable dynamic linking. --enable-shared implies this, so
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1154 ### --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
1155 ### 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
1156 ### example, OS X and Windows).
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1157
11216
5036b0ff9597 configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents: 11214
diff changeset
1158 AC_ARG_ENABLE([dl],
5036b0ff9597 configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents: 11214
diff changeset
1159 [AS_HELP_STRING([--enable-dl],
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1160 [create shared libraries (not all systems)])], [
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1161 case "${enableval}" in
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1162 yes) ENABLE_DYNAMIC_LINKING=true ;;
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1163 no) ENABLE_DYNAMIC_LINKING=false ;;
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1164 *) AC_MSG_ERROR([bad value ${enableval} for --enable-dl]) ;;
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1165 esac], [ENABLE_DYNAMIC_LINKING=true])
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1166
3034
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1167 if $STATIC_LIBS || $SHARED_LIBS; then
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1168 true
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1169 else
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1170 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
1171 fi
ad0e94b6784c [project @ 1997-06-05 21:25:53 by jwe]
jwe
parents: 3029
diff changeset
1172
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1173 AC_ARG_ENABLE(rpath,
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1174 [AS_HELP_STRING([--enable-rpath],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1175 [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
1176 [ if test "$enableval" = no; then use_rpath=false;
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1177 else
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1178 use_rpath=true
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1179 if test "$enableval" = yes; then true;
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1180 else enable_rpath_arg="$enableval"; fi
4439
64a91c8251e2 [project @ 2003-06-27 19:13:37 by jwe]
jwe
parents: 4417
diff changeset
1181 fi], [use_rpath=true])
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1182
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1183 CPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1184 CXXPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1185 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1186 SHLEXT=so
4190
bc0edad7dda7 [project @ 2002-11-19 23:14:51 by jwe]
jwe
parents: 4189
diff changeset
1187 SHLLIB='$(SHLEXT)'
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1188 SHLBIN=
4138
b38835ea3c6e [project @ 2002-10-31 16:18:51 by jwe]
jwe
parents: 4128
diff changeset
1189 SHLEXT_VER='$(SHLEXT).$(version)'
b38835ea3c6e [project @ 2002-10-31 16:18:51 by jwe]
jwe
parents: 4128
diff changeset
1190 SHLLIB_VER='$(SHLLIB).$(version)'
b38835ea3c6e [project @ 2002-10-31 16:18:51 by jwe]
jwe
parents: 4128
diff changeset
1191 SHLBIN_VER='$(SHLBIN).$(version)'
4126
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1192 SHLLINKEXT=
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1193 LIBPRE=lib
9186
49a0c58a7dcf Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents: 9178
diff changeset
1194 SHLPRE=lib
9189
8a348e4be8bb repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents: 9187
diff changeset
1195 SHLLIBPRE=lib
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1196 SHLBINPRE=lib
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1197 SH_LD='$(CXX)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1198 SH_LDFLAGS=-shared
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1199 DL_LD='$(SH_LD)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1200 DL_LDFLAGS='$(SH_LDFLAGS)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1201 MKOCTFILE_DL_LDFLAGS='$(DL_LDFLAGS)'
3036
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
1202 SONAME_FLAGS=
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1203 RLD_FLAG=
4199
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4196
diff changeset
1204 NO_OCT_FILE_STRIP=false
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1205 TEMPLATE_AR='$(AR)'
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1206 TEMPLATE_ARFLAGS="$ARFLAGS"
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1207 CRUFT_DLL_DEFS=
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1208 OCTAVE_DLL_DEFS=
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1209 OCTINTERP_DLL_DEFS=
7825
13871b7de124 Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 7789
diff changeset
1210 OCTGRAPHICS_DLL_DEFS=
4104
fef735180134 [project @ 2002-10-15 20:28:20 by jwe]
jwe
parents: 4103
diff changeset
1211 library_path_var=LD_LIBRARY_PATH
9613
16907d1153d1 attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents: 9610
diff changeset
1212 ldpreloadsep=" "
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10951
diff changeset
1213 BUILD_COMPILED_AUX_PROGRAMS=false
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1214 case "$canonical_host_type" in
6668
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1215 *-*-386bsd* | *-*-netbsd*)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1216 SH_LD=ld
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1217 SH_LDFLAGS=-Bshareable
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1218 ;;
6668
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1219 *-*-openbsd*)
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1220 SH_LDFLAGS='-shared -fPIC'
69197bd681f6 [project @ 2007-05-29 07:57:19 by jwe]
jwe
parents: 6585
diff changeset
1221 ;;
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1222 *-*-freebsd*)
5508
7865515fc6c2 [project @ 2005-10-26 15:24:07 by jwe]
jwe
parents: 5506
diff changeset
1223 SH_LDFLAGS="-shared -Wl,-x"
7865515fc6c2 [project @ 2005-10-26 15:24:07 by jwe]
jwe
parents: 5506
diff changeset
1224 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)'
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1225 ;;
3127
d6ebd123170a [project @ 1998-01-16 05:59:35 by jwe]
jwe
parents: 3126
diff changeset
1226 alpha*-dec-osf*)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1227 CPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1228 CXXPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1229 FPICFLAG=
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1230 SH_LDFLAGS="-shared -Wl,-expect_unresolved -Wl,'*'"
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1231 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1232 ;;
3956
8a5596d6f7c4 [project @ 2002-05-24 05:29:57 by jwe]
jwe
parents: 3923
diff changeset
1233 *-*-darwin*)
10004
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 10003
diff changeset
1234 DL_LDFLAGS='-bundle -bundle_loader $(top_builddir)/src/octave $(LDFLAGS)'
6682
1e440ccda1ca [project @ 2007-06-01 19:34:56 by jwe]
jwe
parents: 6668
diff changeset
1235 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
1236 SH_LDFLAGS='-dynamiclib -single_module $(LDFLAGS)'
7266
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1237 case "$canonical_host_type" in
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1238 powerpc-*)
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1239 CXXPICFLAG=
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1240 CPICFLAG=
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1241 FPICFLAG=
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1242 ;;
b42f8f3527a5 [project @ 2007-12-06 22:05:23 by jwe]
jwe
parents: 7253
diff changeset
1243 esac
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1244 SHLEXT=dylib
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1245 SHLLIB='$(SHLEXT)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1246 SHLEXT_VER='$(version).$(SHLEXT)'
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1247 SHLLIB_VER='$(version).$(SHLLIB)'
4199
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4196
diff changeset
1248 NO_OCT_FILE_STRIP=true
4786
fc316bde0053 [project @ 2004-02-18 12:52:20 by jwe]
jwe
parents: 4773
diff changeset
1249 SONAME_FLAGS='-install_name $(octlibdir)/$@'
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
1250 library_path_var=DYLD_LIBRARY_PATH
3956
8a5596d6f7c4 [project @ 2002-05-24 05:29:57 by jwe]
jwe
parents: 3923
diff changeset
1251 ;;
8675
43c6012bd4c2 configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents: 8659
diff changeset
1252 *-*-cygwin*)
9054
0735e427c6c0 configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 9049
diff changeset
1253 CPICFLAG=
0735e427c6c0 configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 9049
diff changeset
1254 CXXPICFLAG=
0735e427c6c0 configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 9049
diff changeset
1255 FPICFLAG=
0735e427c6c0 configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 9049
diff changeset
1256 LIBPRE=lib
9186
49a0c58a7dcf Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents: 9178
diff changeset
1257 SHLPRE=cyg
9241
60bbc66bb0e2 Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 9231
diff changeset
1258 SHLBINPRE=cyg
8644
fac8c78b4fb9 configure.in: fix shared library definitions for Cygwin and MinGW
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 8641
diff changeset
1259 SHLEXT=dll
fac8c78b4fb9 configure.in: fix shared library definitions for Cygwin and MinGW
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 8641
diff changeset
1260 SHLLIB=dll.a
9241
60bbc66bb0e2 Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 9231
diff changeset
1261 SHLBIN=dll
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
1262 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
1263 SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base"
9241
60bbc66bb0e2 Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents: 9231
diff changeset
1264 SONAME_FLAGS='-Wl,--out-implib=$(patsubst $(SHLPRE)%,$(LIBPRE)%,$@).a'
9613
16907d1153d1 attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents: 9610
diff changeset
1265 ldpreloadsep=":"
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1266 ;;
8675
43c6012bd4c2 configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents: 8659
diff changeset
1267 *-*-mingw*)
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10951
diff changeset
1268 BUILD_COMPILED_AUX_PROGRAMS=true
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1269 if test "$have_msvc" = "yes"; then
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1270 DL_LDFLAGS="-shared"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1271 CPICFLAG=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1272 CXXPICFLAG=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1273 FPICFLAG=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1274 SHLEXT=dll
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1275 SHLLIB=lib
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1276 SHLBIN=dll
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1277 LIBPRE=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1278 SHLPRE=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1279 SHLLIBPRE=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1280 SHLBINPRE=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1281 SH_LDFLAGS="-shared"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1282 if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1283 DL_LDFLAGS="$DL_LDFLAGS -g"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1284 SH_LDFLAGS="$SH_LDFLAGS -g"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1285 fi
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1286 NO_OCT_FILE_STRIP=true
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1287 library_path_var=PATH
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1288 NO_OCT_FILE_STRIP=true
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1289 ## Extra compilation flags.
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1290 CRUFT_DLL_DEFS="-DCRUFT_DLL"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1291 OCTAVE_DLL_DEFS="-DOCTAVE_DLL"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1292 OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1293 OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1294 else
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1295 CPICFLAG=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1296 CXXPICFLAG=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1297 FPICFLAG=
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1298 SHLEXT=dll
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1299 SHLLIB=dll.a
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1300 SHLBIN=dll
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1301 DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1302 SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1303 SONAME_FLAGS='-Wl,--out-implib=$@.a'
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1304 library_path_var=PATH
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1305 fi
8675
43c6012bd4c2 configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents: 8659
diff changeset
1306 ;;
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1307
6089
9f9313969599 [project @ 2006-10-25 21:00:07 by jwe]
jwe
parents: 6087
diff changeset
1308 *-*-msdosmsvc)
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10951
diff changeset
1309 BUILD_COMPILED_AUX_PROGRAMS=true
6794
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1310 DL_LDFLAGS="-shared"
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1311 CPICFLAG=
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1312 CXXPICFLAG=
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1313 FPICFLAG=
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1314 SHLEXT=dll
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1315 SHLLIB=lib
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1316 SHLBIN=dll
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1317 LIBPRE=
9186
49a0c58a7dcf Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents: 9178
diff changeset
1318 SHLPRE=
9189
8a348e4be8bb repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents: 9187
diff changeset
1319 SHLLIBPRE=
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1320 SHLBINPRE=
6794
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1321 SH_LDFLAGS="-shared"
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1322 if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then
6794
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1323 DL_LDFLAGS="$DL_LDFLAGS -g"
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1324 SH_LDFLAGS="$SH_LDFLAGS -g"
5e4ae36ffdb2 [project @ 2007-07-24 22:53:53 by jwe]
jwe
parents: 6719
diff changeset
1325 fi
6255
c97a1cdea9e7 [project @ 2007-01-29 21:15:28 by jwe]
jwe
parents: 6232
diff changeset
1326 NO_OCT_FILE_STRIP=true
6100
8137e2bbd1dd [project @ 2006-10-26 16:01:45 by jwe]
jwe
parents: 6098
diff changeset
1327 library_path_var=PATH
6718
509469a21cde [project @ 2007-06-13 21:16:59 by jwe]
jwe
parents: 6704
diff changeset
1328 NO_OCT_FILE_STRIP=true
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
1329 ## Extra compilation flags.
6137
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1330 CRUFT_DLL_DEFS="-DCRUFT_DLL"
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1331 OCTAVE_DLL_DEFS="-DOCTAVE_DLL"
4fb3f3e3d6bb [project @ 2006-11-03 18:19:10 by jwe]
jwe
parents: 6133
diff changeset
1332 OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL"
7825
13871b7de124 Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 7789
diff changeset
1333 OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL"
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1334 ;;
3740
0228f57f88c3 [project @ 2000-11-28 02:51:22 by jwe]
jwe
parents: 3729
diff changeset
1335 *-*-linux* | *-*-gnu*)
4906
6754342ef7ad [project @ 2004-06-23 11:11:50 by jwe]
jwe
parents: 4877
diff changeset
1336 MKOCTFILE_DL_LDFLAGS="-shared -Wl,-Bsymbolic"
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1337 SONAME_FLAGS='-Wl,-soname -Wl,$@'
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1338 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1339 ;;
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1340 i[[3456]]86-*-sco3.2v5*)
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1341 SONAME_FLAGS='-Wl,-h -Wl,$@'
3705
7e90f4e9a4d5 [project @ 2000-07-22 01:57:25 by jwe]
jwe
parents: 3697
diff changeset
1342 RLD_FLAG=
3160
4696773a14b1 [project @ 1998-03-02 06:18:12 by jwe]
jwe
parents: 3157
diff changeset
1343 SH_LDFLAGS=-G
4696773a14b1 [project @ 1998-03-02 06:18:12 by jwe]
jwe
parents: 3157
diff changeset
1344 ;;
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1345 rs6000-ibm-aix* | powerpc-ibm-aix*)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1346 CPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1347 CXXPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1348 FPICFLAG=
9172
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1349 library_path_var=LIBPATH
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1350 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1351 hppa*-hp-hpux*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1352 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
1353 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1354 else
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1355 FPICFLAG=+Z
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1356 fi
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1357 SHLEXT=sl
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1358 SH_LDFLAGS="-shared -fPIC"
4283
07c990a9edf5 [project @ 2003-01-04 05:24:55 by jwe]
jwe
parents: 4278
diff changeset
1359 RLD_FLAG='-Wl,+b -Wl,$(octlibdir)'
9172
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1360 library_path_var=SHLIB_PATH
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1361 ;;
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1362 ia64*-hp-hpux*)
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1363 if test "$ac_cv_f77_compiler_gnu" = yes; then
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1364 FPICFLAG=-fPIC
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1365 else
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1366 FPICFLAG=+Z
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1367 fi
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1368 SH_LDFLAGS="-shared -fPIC"
cd68431b395a configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9171
diff changeset
1369 RLD_FLAG='-Wl,+b -Wl,$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1370 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1371 *-sgi-*)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1372 CPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1373 CXXPICFLAG=
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1374 FPICFLAG=
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1375 RLD_FLAG='-rpath $(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1376 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1377 sparc-sun-sunos4*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1378 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
1379 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1380 else
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1381 FPICFLAG=-PIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1382 fi
3059
f2a34a28d9c5 [project @ 1997-06-20 20:25:29 by jwe]
jwe
parents: 3043
diff changeset
1383 SH_LD=ld
f2a34a28d9c5 [project @ 1997-06-20 20:25:29 by jwe]
jwe
parents: 3043
diff changeset
1384 SH_LDFLAGS="-assert nodefinitions"
3162
7c96e85c76db [project @ 1998-04-08 18:19:35 by jwe]
jwe
parents: 3161
diff changeset
1385 RLD_FLAG='-L$(octlibdir)'
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1386 ;;
3606
89f958b5358f [project @ 2000-03-08 09:30:05 by jwe]
jwe
parents: 3597
diff changeset
1387 sparc-sun-solaris2* | i386-pc-solaris2*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1388 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
1389 FPICFLAG=-fPIC
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1390 else
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1391 FPICFLAG=-KPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1392 fi
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1393 if test "$GCC" = yes; then
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1394 CPICFLAG=-fPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1395 else
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1396 CPICFLAG=-KPIC
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1397 fi
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1398 if test "$GXX" = yes; then
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1399 CXXPICFLAG=-fPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1400 SH_LDFLAGS=-shared
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1401 else
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1402 CXXPICFLAG=-KPIC
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1403 SH_LDFLAGS=-G
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1404 fi
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1405 RLD_FLAG='-R $(octlibdir)'
6087
700e121edb94 [project @ 2006-10-25 19:03:12 by jwe]
jwe
parents: 6061
diff changeset
1406 ## 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
1407 if test "$GXX" = yes; then
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1408 true
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1409 else
4323
0990c9b77109 [project @ 2003-02-14 07:36:26 by jwe]
jwe
parents: 4314
diff changeset
1410 TEMPLATE_AR='$(CXX)'
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1411 TEMPLATE_ARFLAGS="-xar -o"
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1412 fi
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1413 ;;
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1414 esac
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1415
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10951
diff changeset
1416 AM_CONDITIONAL([AMCOND_BUILD_COMPILED_AUX_PROGRAMS],
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10951
diff changeset
1417 [test x$BUILD_COMPILED_AUX_PROGRAMS = xtrue])
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10951
diff changeset
1418
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1419 if $use_rpath; then
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1420 if test -n "$enable_rpath_arg"; then
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1421 RLD_FLAG="$enable_rpath_arg"
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1422 fi
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1423 else
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1424 RLD_FLAG=""
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1425 fi
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1426
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1427 AC_MSG_NOTICE([defining FPICFLAG to be $FPICFLAG])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1428 AC_MSG_NOTICE([defining CPICFLAG to be $CPICFLAG])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1429 AC_MSG_NOTICE([defining CXXPICFLAG to be $CXXPICFLAG])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1430 AC_MSG_NOTICE([defining SHLEXT to be $SHLEXT])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1431 AC_MSG_NOTICE([defining SHLLIB to be $SHLLIB])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1432 AC_MSG_NOTICE([defining SHLBIN to be $SHLBIN])
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1433 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
1434 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
1435 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
1436 AC_MSG_NOTICE([defining SHLLINKEXT to be $SHLLINKEXT])
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1437 AC_MSG_NOTICE([defining LIBPRE to be $LIBPRE])
9186
49a0c58a7dcf Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents: 9178
diff changeset
1438 AC_MSG_NOTICE([defining SHLPRE to be $SHLPRE])
9189
8a348e4be8bb repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents: 9187
diff changeset
1439 AC_MSG_NOTICE([defining SHLLIBPRE to be $SHLLIBPRE])
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1440 AC_MSG_NOTICE([defining SHLBINPRE to be $SHLBINPRE])
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1441 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
1442 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
1443 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
1444 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
1445 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
1446 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
1447 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
1448 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
1449 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
1450 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
1451 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
1452 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
1453 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
1454 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
1455 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
1456 AC_SUBST(FPICFLAG)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1457 AC_SUBST(CPICFLAG)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1458 AC_SUBST(CXXPICFLAG)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1459 AC_SUBST(SHLEXT)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1460 AC_SUBST(SHLLIB)
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1461 AC_SUBST(SHLBIN)
4126
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1462 AC_SUBST(SHLEXT_VER)
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1463 AC_SUBST(SHLLIB_VER)
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1464 AC_SUBST(SHLBIN_VER)
b10790694d48 [project @ 2002-10-25 20:05:23 by jwe]
jwe
parents: 4112
diff changeset
1465 AC_SUBST(SHLLINKEXT)
6051
583c98eeeae2 [project @ 2006-10-13 18:11:26 by jwe]
jwe
parents: 6049
diff changeset
1466 AC_SUBST(LIBPRE)
9186
49a0c58a7dcf Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents: 9178
diff changeset
1467 AC_SUBST(SHLPRE)
9189
8a348e4be8bb repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents: 9187
diff changeset
1468 AC_SUBST(SHLLIBPRE)
8618
f8b3ece45bda use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents: 8607
diff changeset
1469 AC_SUBST(SHLBINPRE)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1470 AC_SUBST(SH_LD)
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1471 AC_SUBST(SH_LDFLAGS)
4759
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1472 AC_SUBST(DL_LD)
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1473 AC_SUBST(DL_LDFLAGS)
364bbf35dbfa [project @ 2004-02-15 00:08:06 by jwe]
jwe
parents: 4726
diff changeset
1474 AC_SUBST(MKOCTFILE_DL_LDFLAGS)
3036
b8c5ded2751f [project @ 1997-06-05 21:44:19 by jwe]
jwe
parents: 3034
diff changeset
1475 AC_SUBST(SONAME_FLAGS)
4199
35ec3b95a3ca [project @ 2002-11-21 20:47:49 by jwe]
jwe
parents: 4196
diff changeset
1476 AC_SUBST(NO_OCT_FILE_STRIP)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1477 AC_SUBST(RLD_FLAG)
3775
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1478 AC_SUBST(TEMPLATE_AR)
13905c3a24af [project @ 2001-02-06 01:56:59 by jwe]
jwe
parents: 3769
diff changeset
1479 AC_SUBST(TEMPLATE_ARFLAGS)
6141
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6137
diff changeset
1480 AC_SUBST(CRUFT_DLL_DEFS)
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6137
diff changeset
1481 AC_SUBST(OCTAVE_DLL_DEFS)
f6c2d9276572 [project @ 2006-11-06 17:52:51 by jwe]
jwe
parents: 6137
diff changeset
1482 AC_SUBST(OCTINTERP_DLL_DEFS)
7825
13871b7de124 Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 7789
diff changeset
1483 AC_SUBST(OCTGRAPHICS_DLL_DEFS)
4104
fef735180134 [project @ 2002-10-15 20:28:20 by jwe]
jwe
parents: 4103
diff changeset
1484 AC_SUBST(library_path_var)
9613
16907d1153d1 attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents: 9610
diff changeset
1485 AC_SUBST(ldpreloadsep)
4102
cbac6756967e [project @ 2002-10-14 20:16:44 by jwe]
jwe
parents: 4101
diff changeset
1486
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1487 ### special checks for odd OS specific things.
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1488
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1489 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
1490
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1491 NO_UNDEFINED_LDFLAG=
4388
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1492 case "$canonical_host_type" in
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1493 *-*-mingw*)
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1494 if test "$have_msvc" = "yes"; then
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1495 AC_CHECK_LIB(dirent, opendir)
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1496 LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -luser32 -lkernel32"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1497 NO_UNDEFINED_LDFLAG=-no-undefined
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1498 else
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1499 LIBS="$LIBS -lgdi32 -lws2_32 -luser32 -lkernel32"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1500 NO_UNDEFINED_LDFLAG=-no-undefined
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1501 fi
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1502 LIBS="$LIBS -lgdi32 -lws2_32 -luser32 -lkernel32"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1503 NO_UNDEFINED_LDFLAG=-no-undefined
6091
96a11041f52b [project @ 2006-10-25 21:25:04 by jwe]
jwe
parents: 6090
diff changeset
1504 ;;
10123
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1505 *-*-msdosmsvc*)
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1506 AC_CHECK_LIB(dirent, opendir)
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1507 LIBS="$LIBS -ladvapi32 -lgdi32 -lws2_32 -luser32 -lkernel32"
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1508 NO_UNDEFINED_LDFLAG=-no-undefined
8590f3c51868 Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 10092
diff changeset
1509 ;;
4388
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1510 esac
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1511 AC_SUBST(NO_UNDEFINED_LDFLAG)
4388
a3020cb1fe0f [project @ 2003-04-24 22:22:59 by jwe]
jwe
parents: 4382
diff changeset
1512
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1513 ### Type stuff.
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1514
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1515 AC_TYPE_MODE_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1516 AC_TYPE_OFF_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1517 AC_TYPE_PID_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1518 AC_TYPE_SIZE_T
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1519 AC_TYPE_UID_T
10077
6ece454060b3 gnulib guarantees nlink_t
John W. Eaton <jwe@octave.org>
parents: 10073
diff changeset
1520 AC_CHECK_TYPES([dev_t, ino_t])
4353
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1521 AC_CHECK_TYPES([long long int, unsigned long long int])
ea4b8c35ac9d [project @ 2003-02-21 21:04:41 by jwe]
jwe
parents: 4352
diff changeset
1522
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1523 ### 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
1524 ### be eliminated in favor of run-time checks.
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1525
3888
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1526 AC_CHECK_SIZEOF(short)
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1527 AC_CHECK_SIZEOF(int)
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1528 AC_CHECK_SIZEOF(long)
70ebd3d672a1 [project @ 2002-04-04 01:05:53 by jwe]
jwe
parents: 3887
diff changeset
1529 AC_CHECK_SIZEOF(long long)
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1530
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1531 ### Does the C compiler handle alloca() and const correctly?
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1532
4602
59e180c8cb61 [project @ 2003-11-12 18:36:24 by jwe]
jwe
parents: 4587
diff changeset
1533 AC_FUNC_ALLOCA
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1534
4360
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1535 ### See if we should use placement delete.
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1536
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1537 OCTAVE_PLACEMENT_DELETE
1d7180ab9df1 [project @ 2003-02-24 02:57:24 by jwe]
jwe
parents: 4354
diff changeset
1538
4366
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1539 ### See if we can auto allocate variable sized arrays.
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1540
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1541 OCTAVE_DYNAMIC_AUTO_ARRAYS
ad851d04b396 [project @ 2003-03-05 09:49:18 by jwe]
jwe
parents: 4365
diff changeset
1542
8169
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1543 ### See if we can use fast integer arithmetics
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1544
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1545 OCTAVE_FAST_INT_OPS
66bc6f9b4f72 rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents: 8019
diff changeset
1546
8185
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1547 ### Check for long double type (for 64-bit integers)
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1548
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1549 AC_CHECK_SIZEOF(long double)
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
1550
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1551 ### Checks for header files.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1552
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1553 AC_HEADER_DIRENT
1377
44f5d41ff757 [project @ 1995-09-12 00:07:58 by jwe]
jwe
parents: 1348
diff changeset
1554 AC_HEADER_SYS_WAIT
2097
19ba1a7dcfbb [project @ 1996-04-28 10:40:15 by jwe]
jwe
parents: 2064
diff changeset
1555
4051
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1556 ### C headers
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1557
11234
2718e1fdf82f IEEE math initialization tweaks
John W. Eaton <jwe@octave.org>
parents: 11233
diff changeset
1558 AC_CHECK_HEADERS(curses.h direct.h dlfcn.h floatingpoint.h grp.h \
2718e1fdf82f IEEE math initialization tweaks
John W. Eaton <jwe@octave.org>
parents: 11233
diff changeset
1559 ieeefp.h inttypes.h locale.h memory.h ncurses.h poll.h pthread.h \
2718e1fdf82f IEEE math initialization tweaks
John W. Eaton <jwe@octave.org>
parents: 11233
diff changeset
1560 pwd.h sunmath.h sys/ioctl.h sys/param.h sys/poll.h sys/resource.h \
2718e1fdf82f IEEE math initialization tweaks
John W. Eaton <jwe@octave.org>
parents: 11233
diff changeset
1561 sys/select.h sys/utsname.h termcap.h)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1562
4051
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1563 ### C++ headers
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1564
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1565 AC_LANG_PUSH(C++)
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1566 AC_CHECK_HEADERS(sstream)
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1567 AC_LANG_POP(C++)
b79da8779a0e [project @ 2002-08-17 19:38:32 by jwe]
jwe
parents: 3989
diff changeset
1568
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1569 have_termios_h=no
9259
75c502937d2c Fix typo for termios.h
Thomas Weber <thomas.weber.mail at gmail.com>
parents: 9254
diff changeset
1570 AC_CHECK_HEADERS(termios.h, have_termios_h=yes)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1571 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
1572 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
1573 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
1574 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
1575
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1576 if test "$have_termios_h" = yes \
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1577 || test "$have_termio_h" = yes \
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1578 || test "$have_sgtty_h" = yes; then
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1579 true
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1580 else
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1581 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
1582 fi
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1583
1788
b7de2fd2be6b [project @ 1996-01-24 20:47:58 by jwe]
jwe
parents: 1762
diff changeset
1584 ### Checks for functions and variables.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1585
10244
b0485f5a921e assume atexit exists
John W. Eaton <jwe@octave.org>
parents: 10243
diff changeset
1586 AC_CHECK_FUNCS(basename canonicalize_file_name \
10259
65b41bc71f09 use gnulib fcntl module
John W. Eaton <jwe@octave.org>
parents: 10257
diff changeset
1587 chmod dup2 endgrent endpwent execvp expm1 expm1f fork \
7638
2df457529cfa implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents: 7636
diff changeset
1588 getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \
10072
0b0bf1fd1ed7 use gettimeofday module from gnulib
John W. Eaton <jwe@octave.org>
parents: 10036
diff changeset
1589 getppid getpwent getpwuid getuid getwd _kbhit kill \
10179
326746625a51 file-ops.cc cleanups
John W. Eaton <jwe@octave.org>
parents: 10123
diff changeset
1590 lgamma lgammaf lgamma_r lgammaf_r localtime_r log1p log1pf \
10255
dc088edd9a78 configure.ac: don't check for raise or strdup
John W. Eaton <jwe@octave.org>
parents: 10254
diff changeset
1591 mkstemp pipe putenv \
10179
326746625a51 file-ops.cc cleanups
John W. Eaton <jwe@octave.org>
parents: 10123
diff changeset
1592 realpath resolvepath rindex roundl select setgrent setlocale \
10251
28e5a5f826bc configure.ac: delete checks for signal functions
John W. Eaton <jwe@octave.org>
parents: 10250
diff changeset
1593 setpwent setvbuf siglongjmp \
11209
94d9d412a2a0 improve Matlab compatibility of rem and mod
John W. Eaton <jwe@octave.org>
parents: 11208
diff changeset
1594 strsignal tempnam tgammaf umask \
10257
cd550069240e assume vsnprintf from gnulib; use sstream instead of snprintf
John W. Eaton <jwe@octave.org>
parents: 10256
diff changeset
1595 uname utime waitpid \
cd550069240e assume vsnprintf from gnulib; use sstream instead of snprintf
John W. Eaton <jwe@octave.org>
parents: 10256
diff changeset
1596 _chmod x_utime _utime32)
1300
4d86fe3f634e [project @ 1995-05-01 19:18:03 by jwe]
jwe
parents: 1265
diff changeset
1597
9171
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1598 AC_LANG_PUSH(C++)
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1599 AC_CHECK_DECLS([exp2, round, tgamma], [], [], [[#include <cmath>]])
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1600 AC_CHECK_FUNCS([exp2 round tgamma])
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1601 AH_VERBATIM([Z_FUNCS_AND_DECLS], [
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1602 #if defined (__cplusplus)
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1603 extern "C" {
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1604 #endif
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1605 #if HAVE_EXP2 && ! HAVE_DECL_EXP2
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1606 double exp2 (double );
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1607 #endif
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1608 #if HAVE_ROUND && ! HAVE_DECL_ROUND
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1609 double round (double);
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1610 #endif
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1611 #if HAVE_TGAMMA && ! HAVE_DECL_TGAMMA
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1612 double tgamma (double);
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1613 #endif
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1614 #if defined (__cplusplus)
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1615 }
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1616 #endif
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1617 ])
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1618 AC_LANG_POP(C++)
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1619
6094
86ee3cc8d8d2 [project @ 2006-10-26 01:18:33 by jwe]
jwe
parents: 6091
diff changeset
1620 case "$canonical_host_type" in
8792
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1621 *-*-mingw*)
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1622 ## MinGW does not provide a mkstemp function. However, it provides
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1623 ## the mkstemps function in libiberty.
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1624 AC_MSG_CHECKING([for mkstemps in libiberty])
8792
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1625 save_LIBS="$LIBS"
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1626 LIBS="-liberty $LIBS"
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1627 AC_LINK_IFELSE([
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1628 AC_LANG_PROGRAM([[int mkstemps (char *pattern, int suffix_len);]],
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1629 [[mkstemps ("XXXXXX", 0);]]
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1630 )],
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1631 [AC_MSG_RESULT(yes)
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1632 HAVE_MKSTEMPS=yes
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1633 AC_DEFINE(HAVE_MKSTEMPS, 1, [Define if mkstemps is available in libiberty.])
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1634 ],
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1635 [AC_MSG_RESULT(no)
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1636 HAVE_MKSTEMPS=no
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1637 LIBS="$save_LIBS"
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1638 ])
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1639 ;;
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1640 esac
bbb3fa6778f3 use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents: 8771
diff changeset
1641
1708
0d952cd2ea74 [project @ 1996-01-08 00:45:34 by jwe]
jwe
parents: 1679
diff changeset
1642 OCTAVE_SMART_PUTENV
0d952cd2ea74 [project @ 1996-01-08 00:45:34 by jwe]
jwe
parents: 1679
diff changeset
1643
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1644 case "$canonical_host_type" in
6704
781777998927 [project @ 2007-06-13 05:23:56 by jwe]
jwe
parents: 6694
diff changeset
1645 *-*-msdosmsvc | *-*-mingw*)
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1646 AC_MSG_CHECKING([for required _WIN32_WINNT])
12743
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
1647 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1648 #include <windows.h>
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1649 #if _WIN32_WINNT < 0x0403
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1650 #error "Wrong version"
12743
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
1651 #endif]], [])],
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1652 AC_MSG_RESULT([none]), [
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
1653 AC_DEFINE(_WIN32_WINNT, 0x0403, [Define to 0x0403 to access InitializeCriticalSectionAndSpinCount])
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
1654 AC_MSG_RESULT([0x0403])])
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1655 AC_MSG_CHECKING([whether _USE_MATH_DEFINES needs to be defined])
12743
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
1656 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
5d8f2a091b23 maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents: 12742
diff changeset
1657 [[int x = M_LN2;]])],
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1658 AC_MSG_RESULT([no]), [
12451
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
1659 AC_DEFINE(_USE_MATH_DEFINES, 1, [Define if your system needs it to define math constants like M_LN2])
c6c3fdbfede2 untabify configure.ac
John W. Eaton <jwe@octave.org>
parents: 12450
diff changeset
1660 AC_MSG_RESULT([yes])])
6103
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1661 ;;
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1662 esac
a2fdc87184cf [project @ 2006-10-26 21:32:17 by jwe]
jwe
parents: 6102
diff changeset
1663
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1664 ### 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
1665 ### libs and some API for dynamic linking is detected.
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1666
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1667 ## FIXME -- a lot of the following duplicates the functionality of
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1668 ## code generated by the dlopen option for LT_INIT.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1669
3705
7e90f4e9a4d5 [project @ 2000-07-22 01:57:25 by jwe]
jwe
parents: 3697
diff changeset
1670 LD_CXX='$(CXX)'
3232
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
1671 RDYNAMIC_FLAG=
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1672 DL_API_MSG=""
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1673 dlopen_api=false
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1674 shl_load_api=false
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1675 loadlibrary_api=false
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1676 dyld_api=false
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1677
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1678 if $SHARED_LIBS || $ENABLE_DYNAMIC_LINKING; then
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1679
10036
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1680 case "$lt_cv_dlopen" in
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1681 dlopen)
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1682 dlopen_api=true
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1683 DL_API_MSG="(dlopen)"
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1684 AC_DEFINE(HAVE_DLOPEN_API, 1, [Define if your system has dlopen, dlsym, dlerror, and dlclose for dynamic linking])
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1685 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic])
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1686 ;;
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1687 shl_load)
4189
047d21dd1890 [project @ 2002-11-19 21:08:57 by jwe]
jwe
parents: 4182
diff changeset
1688 shl_load_api=true
10036
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1689 DL_API_MSG="(shl_load)"
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1690 AC_DEFINE(HAVE_SHL_LOAD_API, 1, [Define if your system has shl_load and shl_findsym for dynamic linking])
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1691 ;;
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1692 LoadLibrary)
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1693 loadlibrary_api=true
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1694 DL_API_MSG="(LoadLibrary)"
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1695 AC_DEFINE(HAVE_LOADLIBRARY_API, 1, [Define if your system has LoadLibrary for dynamic linking])
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1696 ;;
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1697 dyld)
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1698 dyld_api=true
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1699 DL_API_MSG="(dyld)"
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1700 AC_DEFINE(HAVE_DYLD_API, 1, [Define if your system has dyld for dynamic linking])
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1701 ;;
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1702 esac
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1703
0cabc95f0833 configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents: 10029
diff changeset
1704 DL_LIBS="$lt_cv_dlopen_libs"
9515
eee9b3150446 more configure tweaks
John W. Eaton <jwe@octave.org>
parents: 9514
diff changeset
1705 AC_SUBST(DL_LIBS)
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1706
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1707 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
1708 ENABLE_DYNAMIC_LINKING=true
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1709 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
1710 fi
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1711 fi
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1712
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1713 AM_CONDITIONAL([AMCOND_ENABLE_DYNAMIC_LINKING],
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1714 [test x$ENABLE_DYNAMIC_LINKING = xtrue])
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1715
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1716 if $SHARED_LIBS; then
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1717 LIBOCTINTERP=-loctinterp$SHLLINKEXT
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1718 LIBOCTAVE=-loctave$SHLLINKEXT
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1719 LIBCRUFT=-lcruft$SHLLINKEXT
1978
7291daadce9d [project @ 1996-02-26 09:35:44 by jwe]
jwe
parents: 1924
diff changeset
1720 else
10004
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 10003
diff changeset
1721 LIBOCTINTERP='$(top_builddir)/src/liboctinterp.$(LIBEXT)'
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 10003
diff changeset
1722 LIBOCTAVE='$(top_builddir)/liboctave/liboctave.$(LIBEXT)'
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 10003
diff changeset
1723 LIBCRUFT='$(top_builddir)/libcruft/libcruft.$(LIBEXT)'
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
1724 fi
4163
811ec5317aeb [project @ 2002-11-11 03:40:16 by jwe]
jwe
parents: 4162
diff changeset
1725
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1726 AC_SUBST(LD_CXX)
3232
3f6ae91e86b0 [project @ 1999-01-20 18:55:50 by jwe]
jwe
parents: 3225
diff changeset
1727 AC_SUBST(RDYNAMIC_FLAG)
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
1728 AC_SUBST(ENABLE_DYNAMIC_LINKING)
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1729 AC_SUBST(LIBOCTINTERP)
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1730 AC_SUBST(LIBOCTAVE)
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
1731 AC_SUBST(LIBCRUFT)
1901
527af71a8035 [project @ 1996-02-09 19:35:56 by jwe]
jwe
parents: 1894
diff changeset
1732
8998
a48fba01e4ac optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents: 8940
diff changeset
1733 dnl Maybe <cmath> defines the IEEE functions we need.
a48fba01e4ac optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents: 8940
diff changeset
1734
a48fba01e4ac optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents: 8940
diff changeset
1735 OCTAVE_CMATH_FUNC(isnan)
a48fba01e4ac optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents: 8940
diff changeset
1736 OCTAVE_CMATH_FUNC(isinf)
a48fba01e4ac optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents: 8940
diff changeset
1737 OCTAVE_CMATH_FUNC(isfinite)
a48fba01e4ac optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents: 8940
diff changeset
1738
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1739 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
1740 dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1741 dnl AC_CHECK_FUNCS(finite isnan isinf)
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1742 dnl
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1743 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
1744 dnl
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1745 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
1746 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
1747 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
1748 dnl with an argument.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1749
11229
2f36145742c9 eliminate special cases for SCO systems
John W. Eaton <jwe@octave.org>
parents: 11219
diff changeset
1750 ### I am told that Inf and NaN don't work on m68k HP sytems.
956
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1751
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1752 case "$canonical_host_type" in
1384
083787534e18 [project @ 1995-09-13 08:25:37 by jwe]
jwe
parents: 1377
diff changeset
1753 m68k-hp-hpux*)
956
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1754 ;;
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1755 *)
11209
94d9d412a2a0 improve Matlab compatibility of rem and mod
John W. Eaton <jwe@octave.org>
parents: 11208
diff changeset
1756 AC_CHECK_FUNCS(finite isnan isinf signbit)
94d9d412a2a0 improve Matlab compatibility of rem and mod
John W. Eaton <jwe@octave.org>
parents: 11208
diff changeset
1757 AC_CHECK_FUNCS(_finite _isnan)
5098
ab4e64f92526 [project @ 2004-12-18 15:04:20 by jwe]
jwe
parents: 5078
diff changeset
1758 AC_CHECK_DECLS(signbit, , , [#include <math.h>])
956
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1759 ;;
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1760 esac
d692388b9f93 [project @ 1994-12-05 04:01:30 by jwe]
jwe
parents: 937
diff changeset
1761
1076
2ba812c74caa [project @ 1995-01-27 14:39:54 by jwe]
jwe
parents: 1075
diff changeset
1762 ### 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
1763
9171
7500cfff4728 configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents: 9091
diff changeset
1764 AC_CHECK_FUNCS(acosh acoshf asinh asinhf atanh atanhf erf erff erfc erfcf exp2f log2 log2f)
10414
2a8b1db1e2ca implement built-in cbrt
Jaroslav Hajek <highegg@gmail.com>
parents: 10411
diff changeset
1765 AC_CHECK_FUNCS(hypotf _hypotf cbrt cbrtf)
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1766
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1767 ### Checks for OS specific cruft.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1768
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1769 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
1770
1186
d94bcafabac2 [project @ 1995-03-30 04:57:32 by jwe]
jwe
parents: 1177
diff changeset
1771 AC_STRUCT_TIMEZONE
1388
32ede420188c [project @ 1995-09-14 07:07:50 by jwe]
jwe
parents: 1384
diff changeset
1772 AC_FUNC_CLOSEDIR_VOID
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
1773
3892
56db014d8980 [project @ 2002-04-05 04:08:56 by jwe]
jwe
parents: 3888
diff changeset
1774 AC_CHECK_MEMBERS(struct group.gr_passwd)
2548
b50cc31aa0cd [project @ 1996-11-20 06:43:26 by jwe]
jwe
parents: 2515
diff changeset
1775
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1776 octave_found_termlib=no
2592
0863d2cab514 [project @ 1996-12-14 04:39:00 by jwe]
jwe
parents: 2578
diff changeset
1777 for termlib in ncurses curses termcap terminfo termlib; do
9515
eee9b3150446 more configure tweaks
John W. Eaton <jwe@octave.org>
parents: 9514
diff changeset
1778 AC_CHECK_LIB(${termlib}, tputs, [
eee9b3150446 more configure tweaks
John W. Eaton <jwe@octave.org>
parents: 9514
diff changeset
1779 TERM_LIBS="-l${termlib}"
eee9b3150446 more configure tweaks
John W. Eaton <jwe@octave.org>
parents: 9514
diff changeset
1780 octave_found_termlib=yes
eee9b3150446 more configure tweaks
John W. Eaton <jwe@octave.org>
parents: 9514
diff changeset
1781 break])
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1782 done
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1783
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1784 if test "$octave_found_termlib" = no; then
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1785 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
1786 r -ltermlib!"
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
1787 AC_MSG_WARN([$warn_termlibs])
2488
d4eb39779b88 [project @ 1996-11-08 22:35:59 by jwe]
jwe
parents: 2484
diff changeset
1788 fi
9515
eee9b3150446 more configure tweaks
John W. Eaton <jwe@octave.org>
parents: 9514
diff changeset
1789 AC_SUBST(TERM_LIBS)
2488
d4eb39779b88 [project @ 1996-11-08 22:35:59 by jwe]
jwe
parents: 2484
diff changeset
1790
3822
1a809dae77db [project @ 2001-04-26 16:07:17 by jwe]
jwe
parents: 3820
diff changeset
1791 OCTAVE_ENABLE_READLINE
1a809dae77db [project @ 2001-04-26 16:07:17 by jwe]
jwe
parents: 3820
diff changeset
1792
832
3984a1e61ebc [project @ 1994-10-19 04:34:56 by jwe]
jwe
parents: 830
diff changeset
1793 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
1794 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1795 [[struct exception *x; x->type; x->name;]])],
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1796 [AC_MSG_RESULT(yes)
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1797 AC_DEFINE(EXCEPTION_IN_MATH, 1,
ecb61a521d5b [project @ 2006-06-06 15:03:33 by jwe]
jwe
parents: 5828
diff changeset
1798 [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
1799 [AC_MSG_RESULT(no)])
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1800
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1801 ### Signal stuff.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1802
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1803 AC_CHECK_DECLS([sys_siglist], [], [],
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1804 [#include <signal.h>
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1805 /* NetBSD declares sys_siglist in unistd.h. */
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1806 #if HAVE_UNISTD_H
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1807 # include <unistd.h>
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1808 #endif
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1809 ])
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1810
2633
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2630
diff changeset
1811 ### A system dependent kluge or two.
eb58c59bd223 [project @ 1997-01-27 21:32:14 by jwe]
jwe
parents: 2630
diff changeset
1812
10073
dcde57cb5778 use times module from gnulib
John W. Eaton <jwe@octave.org>
parents: 10072
diff changeset
1813 AC_CHECK_FUNCS(getrusage)
2427
2f50b24ce84f [project @ 1996-10-25 06:15:28 by jwe]
jwe
parents: 2421
diff changeset
1814 case "$canonical_host_type" in
3971
41e7fa40ff4c [project @ 2002-07-02 23:46:48 by jwe]
jwe
parents: 3958
diff changeset
1815 *-*-cygwin*)
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
1816 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
1817 ;;
2f50b24ce84f [project @ 1996-10-25 06:15:28 by jwe]
jwe
parents: 2421
diff changeset
1818 esac
2f50b24ce84f [project @ 1996-10-25 06:15:28 by jwe]
jwe
parents: 2421
diff changeset
1819
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1820 ### Checks for other programs used for building, testing, installing,
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1821 ### and running Octave.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1822
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents: 4531
diff changeset
1823 AC_PROG_AWK
7244
5a9561046b89 [project @ 2007-12-04 02:27:27 by jwe]
jwe
parents: 7237
diff changeset
1824 OCTAVE_PROG_FIND
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4081
diff changeset
1825 OCTAVE_PROG_SED
5465
d6163c0effd5 [project @ 2005-09-23 15:42:48 by jwe]
jwe
parents: 5451
diff changeset
1826 OCTAVE_PROG_PERL
5496
0d1f6c7fe37a [project @ 2005-10-14 07:44:45 by jwe]
jwe
parents: 5468
diff changeset
1827 OCTAVE_PROG_PYTHON
4084
babc519f245b [project @ 2002-10-03 03:23:14 by jwe]
jwe
parents: 4081
diff changeset
1828
3729
ea62136d86e8 [project @ 2000-10-31 17:17:26 by jwe]
jwe
parents: 3726
diff changeset
1829 OCTAVE_PROG_FLEX
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1830 AC_SUBST([LEX_OUTPUT_ROOT], [lex.octave_])
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
1831
3729
ea62136d86e8 [project @ 2000-10-31 17:17:26 by jwe]
jwe
parents: 3726
diff changeset
1832 OCTAVE_PROG_BISON
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1833
1722
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1721
diff changeset
1834 AC_PROG_LN_S
d6c9a1db3f6b [project @ 1996-01-09 05:49:11 by jwe]
jwe
parents: 1721
diff changeset
1835
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1836 AC_PROG_INSTALL
2642
042f5cbdb2a8 [project @ 1997-01-29 06:28:56 by jwe]
jwe
parents: 2633
diff changeset
1837 INSTALL_SCRIPT='${INSTALL}'
042f5cbdb2a8 [project @ 1997-01-29 06:28:56 by jwe]
jwe
parents: 2633
diff changeset
1838 AC_SUBST(INSTALL_SCRIPT)
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1839
5468
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
1840 OCTAVE_PROG_DESKTOP_FILE_INSTALL
41943dd8d7d8 [project @ 2005-09-23 18:34:46 by jwe]
jwe
parents: 5465
diff changeset
1841
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1842 OCTAVE_PROG_GNUPLOT
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1843 OCTAVE_PROG_PAGER
3673
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
1844 OCTAVE_PROG_GPERF
3130
02766207b74c [project @ 1998-01-25 08:27:23 by jwe]
jwe
parents: 3127
diff changeset
1845
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1846 OCTAVE_PROG_GHOSTSCRIPT
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1847 OCTAVE_PROG_TEXI2DVI
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1848 OCTAVE_PROG_TEXI2PDF
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
1849
2032
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1850 ### Even though we include config.h, we need to have the preprocessor
12169
5913cc5fec4e configure.ac: update comment about UGLY_DEFS
John W. Eaton <jwe@octave.org>
parents: 12135
diff changeset
1851 ### defines available in a variable for the testif feature of the
5913cc5fec4e configure.ac: update comment about UGLY_DEFS
John W. Eaton <jwe@octave.org>
parents: 12135
diff changeset
1852 ### scripts/testfun/test.m function. Use UGLY_DEFS to hold all the -D
5913cc5fec4e configure.ac: update comment about UGLY_DEFS
John W. Eaton <jwe@octave.org>
parents: 12135
diff changeset
1853 ### options. These are ultimately placed in the DEFS field of the
5913cc5fec4e configure.ac: update comment about UGLY_DEFS
John W. Eaton <jwe@octave.org>
parents: 12135
diff changeset
1854 ### struct returned by octave_config_info, which is used by test.m.
2032
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1855
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1856 AC_OUTPUT_MAKE_DEFS
3956
8a5596d6f7c4 [project @ 2002-05-24 05:29:57 by jwe]
jwe
parents: 3923
diff changeset
1857
6957
768a19157591 [project @ 2007-10-04 17:58:36 by jwe]
jwe
parents: 6941
diff changeset
1858 ### 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
1859 ### 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
1860 UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'`
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
1861 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
1862 AC_SUBST(UGLY_DEFS)
86d6c42c192a [project @ 1996-03-26 08:46:39 by jwe]
jwe
parents: 2030
diff changeset
1863
4645
bd2067547b40 [project @ 2003-11-23 08:07:52 by jwe]
jwe
parents: 4626
diff changeset
1864 ### 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
1865 ### done feature testing.
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1866
11514
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1867 GCC_EXTRA_FLAGS="-Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual"
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1868
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1869 GXX_EXTRA_FLAGS="-Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual"
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1870
8938
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1871 try_extra_warning_flags=true
11514
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1872
8938
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1873 AC_ARG_ENABLE(extra-warning-flags,
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1874 [AS_HELP_STRING([--enable-extra-warning-flags],
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1875 [add -Wall, -W, -Wshadow, and -Wold-style-cast options to CFLAGS and CXXFLAGS (on by default, but only if the compiler appears to accept them)])],
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1876 [if test "$enableval" = no; then
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1877 try_extra_warning_flags=false
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1878 fi], [])
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1879
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1880 if $try_extra_warning_flags; then
11514
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1881 for flag in $GCC_EXTRA_FLAGS; do
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1882 OCTAVE_CC_FLAG($flag, [
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1883 WARN_CFLAGS="$WARN_CFLAGS $flag";
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1884 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])])
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1885 done
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1886 for flag in $GXX_EXTRA_FLAGS; do
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1887 OCTAVE_CXX_FLAG($flag, [
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1888 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag";
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1889 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])])
a1386fab2a02 configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents: 11513
diff changeset
1890 done
405
fa84be0c4fed [project @ 1994-04-20 05:53:20 by jwe]
jwe
parents: 402
diff changeset
1891 fi
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
1892
11513
a2289858dcb2 more warning flags for GCC if configured with --enable-extra-warning-flags (on by default)
John W. Eaton <jwe@octave.org>
parents: 11511
diff changeset
1893 GCC_STRICT_FLAGS="-Wconversion"
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1894
11513
a2289858dcb2 more warning flags for GCC if configured with --enable-extra-warning-flags (on by default)
John W. Eaton <jwe@octave.org>
parents: 11511
diff changeset
1895 GXX_STRICT_FLAGS="-Wconversion -Weffc++"
8938
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1896
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1897 try_strict_warning_flags=false
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1898
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1899 AC_ARG_ENABLE(strict-warning-flags,
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1900 [AS_HELP_STRING([--enable-strict-warning-flags],
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1901 [add extra strict warning options to CFLAGS and CXXFLAGS (off by default)])],
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1902 [if test "$enableval" = yes; then
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1903 try_strict_warning_flags=true
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1904 fi], [])
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1905
8938
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1906 if $try_strict_warning_flags; then
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1907 for flag in $GCC_STRICT_FLAGS; do
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1908 OCTAVE_CC_FLAG($flag, [
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1909 WARN_CFLAGS="$WARN_CFLAGS $flag";
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1910 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])])
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1911 done
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1912 for flag in $GXX_STRICT_FLAGS; do
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1913 OCTAVE_CXX_FLAG($flag, [
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1914 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag";
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1915 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])])
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1916 done
35e18344fae8 configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
1917 fi
2813
d45d48b3dcde [project @ 1997-03-13 22:39:15 by jwe]
jwe
parents: 2782
diff changeset
1918
4626
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1919 AC_SUBST(WARN_CFLAGS)
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1920 AC_SUBST(WARN_CXXFLAGS)
1ba089061bfe [project @ 2003-11-16 00:33:07 by jwe]
jwe
parents: 4607
diff changeset
1921
1146
b78e479dbf16 [project @ 1995-02-26 22:01:22 by jwe]
jwe
parents: 1145
diff changeset
1922 ### Run configure in subdirectories.
b78e479dbf16 [project @ 1995-02-26 22:01:22 by jwe]
jwe
parents: 1145
diff changeset
1923
1304
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1924 export CC
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1925 export CXX
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1926 export F77
addfb525226d [project @ 1995-05-05 03:26:31 by jwe]
jwe
parents: 1301
diff changeset
1927
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1928 ### 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
1929
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1930 AH_BOTTOM([
10411
479cc8a0a846 use gnulib namespace
John W. Eaton <jwe@octave.org>
parents: 10380
diff changeset
1931 #if !defined (GNULIB_NAMESPACE)
479cc8a0a846 use gnulib namespace
John W. Eaton <jwe@octave.org>
parents: 10380
diff changeset
1932 #define GNULIB_NAMESPACE gnulib
479cc8a0a846 use gnulib namespace
John W. Eaton <jwe@octave.org>
parents: 10380
diff changeset
1933 #endif
479cc8a0a846 use gnulib namespace
John W. Eaton <jwe@octave.org>
parents: 10380
diff changeset
1934
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1935 #if defined (__GNUC__)
5389
25c8956d2204 [project @ 2005-06-15 03:45:46 by jwe]
jwe
parents: 5351
diff changeset
1936 #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1937 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__))
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1938 #define GCC_ATTR_UNUSED __attribute__ ((__unused__))
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1939 #else
5389
25c8956d2204 [project @ 2005-06-15 03:45:46 by jwe]
jwe
parents: 5351
diff changeset
1940 #define GCC_ATTR_DEPRECATED
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1941 #define GCC_ATTR_NORETURN
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1942 #define GCC_ATTR_UNUSED
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1943 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1944
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1945 #define X_CAST(T, E) (T) (E)
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1946
5854
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1947 #if defined (CXX_BROKEN_REINTERPRET_CAST)
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1948 #define FCN_PTR_CAST(T, E) (T) (E)
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1949 #else
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1950 #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
1951 #endif
68f8017ef077 [project @ 2006-06-12 15:54:27 by jwe]
jwe
parents: 5844
diff changeset
1952
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1953 #if !defined(HAVE_DEV_T)
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1954 typedef short dev_t;
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1955 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1956
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1957 #if !defined(HAVE_INO_T)
4064
b4fa31442a78 [project @ 2002-09-26 21:10:45 by jwe]
jwe
parents: 4062
diff changeset
1958 typedef unsigned long ino_t;
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1959 #endif
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
1960
6122
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1961 #if defined (_MSC_VER)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1962 #define __WIN32__
6276
d26c558691cd [project @ 2007-02-07 09:01:24 by jwe]
jwe
parents: 6271
diff changeset
1963 #define WIN32
6122
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1964 /* missing parameters in macros */
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1965 #pragma warning (disable: 4003)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1966 /* missing implementations in template instantiation */
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1967 #pragma warning (disable: 4996)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1968 /* deprecated function names (FIXME?) */
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1969 #pragma warning (disable: 4661)
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1970 #endif
f3322fd3c9bb [project @ 2006-10-28 13:56:55 by jwe]
jwe
parents: 6121
diff changeset
1971
4377
ced2ac0cff7b [project @ 2003-04-17 19:13:25 by jwe]
jwe
parents: 4368
diff changeset
1972 #if defined (__WIN32__) && ! defined (__CYGWIN__)
4101
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1973 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
6049
04c2ad6d1679 [project @ 2006-10-13 14:32:15 by jwe]
jwe
parents: 6043
diff changeset
1974 #elif defined (__CYGWIN__)
4377
ced2ac0cff7b [project @ 2003-04-17 19:13:25 by jwe]
jwe
parents: 4368
diff changeset
1975 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1
ced2ac0cff7b [project @ 2003-04-17 19:13:25 by jwe]
jwe
parents: 4368
diff changeset
1976 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
6049
04c2ad6d1679 [project @ 2006-10-13 14:32:15 by jwe]
jwe
parents: 6043
diff changeset
1977 #else
04c2ad6d1679 [project @ 2006-10-13 14:32:15 by jwe]
jwe
parents: 6043
diff changeset
1978 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1
4101
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1979 #endif
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1980
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1981 /* 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
1982 #if defined (__WIN32__) && ! defined (__CYGWIN__)
4101
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1983 #define OCTAVE_USE_WINDOWS_API 1
ea537559ab07 [project @ 2002-10-11 20:57:21 by jwe]
jwe
parents: 4098
diff changeset
1984 #endif
4153
6b96ce9f5743 [project @ 2002-11-06 20:38:49 by jwe]
jwe
parents: 4138
diff changeset
1985
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
1986 #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
1987 #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
1988 #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
1989
4180
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1990 /* sigsetjmp is a macro, not a function. */
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1991 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP)
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1992 #define OCTAVE_HAVE_SIG_JUMP
84fe3ca3a246 [project @ 2002-11-15 04:47:01 by jwe]
jwe
parents: 4163
diff changeset
1993 #endif
4249
8a1ef8fe4036 [project @ 2002-12-31 04:42:32 by jwe]
jwe
parents: 4229
diff changeset
1994
4552
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
1995 #if defined (_UNICOS)
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
1996 #define F77_USES_CRAY_CALLING_CONVENTION
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
1997 #endif
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
1998
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
1999 #if 0
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2000 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION
6f3382e08a52 [project @ 2003-10-27 20:38:02 by jwe]
jwe
parents: 4544
diff changeset
2001 #endif
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2002
5297
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2003 #ifdef USE_64_BIT_IDX_T
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2004 #define SIZEOF_OCTAVE_IDX_TYPE 8
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2005 #else
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2006 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2007 #endif
234abf4c74dd [project @ 2005-04-21 21:29:46 by jwe]
jwe
parents: 5292
diff changeset
2008
9648
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2009 /* To be able to use long doubles for 64-bit mixed arithmetics, we need
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2010 them at least 80 bits wide and we need roundl declared in math.h.
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2011 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
2012 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL)
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2013 #define OCTAVE_INT_USE_LONG_DOUBLE
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2014 #endif
69c5cce38c29 implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents: 8169
diff changeset
2015
7067
88417316c1b0 [project @ 2007-10-25 06:57:16 by jwe]
jwe
parents: 7063
diff changeset
2016 #define OCTAVE_EMPTY_CPP_ARG
88417316c1b0 [project @ 2007-10-25 06:57:16 by jwe]
jwe
parents: 7063
diff changeset
2017
9648
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2018 /* Octave is currently unable to use FFTW unless both float
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2019 and double versions are both available. */
9523
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
2020 #if defined (HAVE_FFTW3) && defined (HAVE_FFTW3F)
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
2021 #define HAVE_FFTW
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
2022 #endif
0ce82753dd72 more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents: 9519
diff changeset
2023
9648
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2024 /* Backward compatibility. */
9610
bb36a5730ecc configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents: 9603
diff changeset
2025 #if defined (HAVE_Z)
bb36a5730ecc configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents: 9603
diff changeset
2026 #define HAVE_ZLIB
bb36a5730ecc configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents: 9603
diff changeset
2027 #endif
bb36a5730ecc configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents: 9603
diff changeset
2028
9648
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2029 /* oct-dlldefs.h */
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2030
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2031 #if defined (_MSC_VER)
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2032 #define OCTAVE_EXPORT __declspec(dllexport)
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2033 #define OCTAVE_IMPORT __declspec(dllimport)
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2034 #else
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2035 /* All other compilers, at least for now. */
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2036 #define OCTAVE_EXPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2037 #define OCTAVE_IMPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2038 #endif
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2039
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2040 /* API macro for libcruft */
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2041 #ifdef CRUFT_DLL
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2042 #define CRUFT_API OCTAVE_EXPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2043 #else
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2044 #define CRUFT_API OCTAVE_IMPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2045 #endif
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2046
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2047 /* API macro for liboctave */
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2048 #ifdef OCTAVE_DLL
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2049 #define OCTAVE_API OCTAVE_EXPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2050 #else
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2051 #define OCTAVE_API OCTAVE_IMPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2052 #endif
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2053
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2054 /* API macro for src */
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2055 #ifdef OCTINTERP_DLL
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2056 #define OCTINTERP_API OCTAVE_EXPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2057 #else
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2058 #define OCTINTERP_API OCTAVE_IMPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2059 #endif
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2060
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2061 /* API macro for src/graphics */
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2062 #ifdef OCTGRAPHICS_DLL
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2063 #define OCTGRAPHICS_API OCTAVE_EXPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2064 #else
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2065 #define OCTGRAPHICS_API OCTAVE_IMPORT
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2066 #endif
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2067
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2068 /* oct-types.h */
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2069
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2070 typedef OCTAVE_IDX_TYPE octave_idx_type;
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2071
11844593875a eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents: 9645
diff changeset
2072 #include <stdint.h>
3923
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
2073 ])
f54f5fb43d43 [project @ 2002-05-01 07:08:45 by jwe]
jwe
parents: 3911
diff changeset
2074
869
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
2075 ### Do the substitutions in all the Makefiles.
05428c0044cc [project @ 1994-11-02 16:26:12 by jwe]
jwe
parents: 859
diff changeset
2076
8850
538184c540a9 Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents: 8849
diff changeset
2077 AC_SUBST(ac_config_files)
9645
4531741e5236 configure tweaks
John W. Eaton <jwe@octave.org>
parents: 9613
diff changeset
2078 AC_SUBST(ac_config_headers)
8850
538184c540a9 Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents: 8849
diff changeset
2079
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2080 AC_CONFIG_FILES([
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2081 Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2082 doc/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2083 doc/faq/Makefile
12336
af2b18354a8e Add new Octave O logo to Mercurial and build process.
Rik <octave@nomad.inbox5.com>
parents: 12218
diff changeset
2084 doc/icons/Makefile
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2085 doc/interpreter/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2086 doc/liboctave/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2087 doc/refcard/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2088 examples/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2089 libcruft/Makefile
9817
932b0efeb81b restore rules to create libcruft/cruft.def
John W. Eaton <jwe@octave.org>
parents: 9804
diff changeset
2090 libcruft/mkf77def
9946
55061c7c8d6e start using gnulib
John W. Eaton <jwe@octave.org>
parents: 9939
diff changeset
2091 libgnu/Makefile
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2092 liboctave/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2093 scripts/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2094 src/Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2095 test/Makefile])
8850
538184c540a9 Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents: 8849
diff changeset
2096
3887
7da18459c08b [project @ 2002-04-04 00:44:21 by jwe]
jwe
parents: 3886
diff changeset
2097 AC_OUTPUT
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2098
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2099 ### 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
2100
5844
034cdbd34c0a [project @ 2006-06-07 15:38:58 by jwe]
jwe
parents: 5842
diff changeset
2101 AC_MSG_NOTICE([
1225
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2102
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2103 Octave is now configured for $canonical_host_type
b013cff15746 [project @ 1995-04-10 00:34:21 by jwe]
jwe
parents: 1208
diff changeset
2104
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2105 Source directory: $srcdir
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2106 Installation prefix: $prefix
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2107 C compiler: $CC $XTRA_CFLAGS $WARN_CFLAGS $CFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2108 C++ compiler: $CXX $XTRA_CXXFLAGS $WARN_CXXFLAGS $CXXFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2109 Fortran compiler: $F77 $FFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2110 Fortran libraries: $FLIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2111 Lex libraries: $LEXLIB
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2112 LIBS: $LIBS
9519
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
2113
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2114 AMD CPPFLAGS: $AMD_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2115 AMD LDFLAGS: $AMD_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2116 AMD libraries: $AMD_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2117 BLAS libraries: $BLAS_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2118 CAMD CPPFLAGS: $CAMD_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2119 CAMD LDFLAGS: $CAMD_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2120 CAMD libraries: $CAMD_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2121 CARBON libraries: $CARBON_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2122 CCOLAMD CPPFLAGS: $CCOLAMD_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2123 CCOLAMD LDFLAGS: $CCOLAMD_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2124 CCOLAMD libraries: $CCOLAMD_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2125 CHOLMOD CPPFLAGS: $CHOLMOD_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2126 CHOLMOD LDFLAGS: $CHOLMOD_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2127 CHOLMOD libraries: $CHOLMOD_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2128 COLAMD CPPFLAGS: $COLAMD_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2129 COLAMD LDFLAGS: $COLAMD_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2130 COLAMD libraries: $COLAMD_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2131 CURL CPPFLAGS: $CURL_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2132 CURL LDFLAGS: $CURL_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2133 CURL libraries: $CURL_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2134 CXSPARSE CPPFLAGS: $CXSPARSE_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2135 CXSPARSE LDFLAGS: $CXSPARSE_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2136 CXSPARSE libraries: $CXSPARSE_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2137 DL libraries: $DL_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2138 FFTW3 CPPFLAGS: $FFTW3_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2139 FFTW3 LDFLAGS: $FFTW3_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2140 FFTW3 libraries: $FFTW3_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2141 FFTW3F CPPFLAGS: $FFTW3F_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2142 FFTW3F LDFLAGS: $FFTW3F_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2143 FFTW3F libraries: $FFTW3F_LIBS
9846
1d90fc211872 configure.ac: report freetype, fontconfig, and fltk cflags and libs info
John W. Eaton <jwe@octave.org>
parents: 9845
diff changeset
2144 fontconfig CFLAGS: $FONTCONFIG_CFLAGS
1d90fc211872 configure.ac: report freetype, fontconfig, and fltk cflags and libs info
John W. Eaton <jwe@octave.org>
parents: 9845
diff changeset
2145 fontconfig LIBS: $FONTCONFIG_LIBS
1d90fc211872 configure.ac: report freetype, fontconfig, and fltk cflags and libs info
John W. Eaton <jwe@octave.org>
parents: 9845
diff changeset
2146 FT2_CFLAGS: $FT2_CFLAGS
1d90fc211872 configure.ac: report freetype, fontconfig, and fltk cflags and libs info
John W. Eaton <jwe@octave.org>
parents: 9845
diff changeset
2147 FT2_LIBS: $FT2_LIBS
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2148 GLPK CPPFLAGS: $GLPK_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2149 GLPK LDFLAGS: $GLPK_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2150 GLPK libraries: $GLPK_LIBS
9846
1d90fc211872 configure.ac: report freetype, fontconfig, and fltk cflags and libs info
John W. Eaton <jwe@octave.org>
parents: 9845
diff changeset
2151 graphics CFLAGS: $GRAPHICS_CFLAGS
1d90fc211872 configure.ac: report freetype, fontconfig, and fltk cflags and libs info
John W. Eaton <jwe@octave.org>
parents: 9845
diff changeset
2152 graphics LIBS: $GRAPHICS_LIBS
11040
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
2153 Magick++ CPPFLAGS: $MAGICK_CPPFLAGS
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
2154 Magick++ LDFLAGS: $MAGICK_LDFLAGS
9ac165a67747 Modified configure.ac to allow specification of ImageMagick or GraphicsMagick. GraphicsMagick is still the default option.
John Swensen <jpswensen@gmail.com>
parents: 10986
diff changeset
2155 Magick++ libraries: $MAGICK_LIBS
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2156 HDF5 CPPFLAGS: $HDF5_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2157 HDF5 LDFLAGS: $HDF5_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2158 HDF5 libraries: $HDF5_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2159 LAPACK libraries: $LAPACK_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2160 OPENGL libraries: $OPENGL_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2161 PTHREAD flags: $PTHREAD_CFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2162 PTHREAD libraries: $PTHREAD_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2163 QHULL CPPFLAGS: $QHULL_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2164 QHULL LDFLAGS: $QHULL_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2165 QHULL libraries: $QHULL_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2166 QRUPDATE libraries: $QRUPDATE_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2167 READLINE libraries: $READLINE_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2168 REGEX libraries: $REGEX_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2169 TERM libraries: $TERM_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2170 UMFPACK libraries: $UMFPACK_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2171 X11 include flags: $X11_INCFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2172 X11 libraries: $X11_LIBS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2173 Z CPPFLAGS: $Z_CPPFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2174 Z LDFLAGS: $Z_LDFLAGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2175 Z libraries: $Z_LIBS
9519
ee99f9f37505 improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents: 9515
diff changeset
2176
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2177 Default pager: $DEFAULT_PAGER
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 9787
diff changeset
2178 gnuplot: $GNUPLOT
1664
913a157f1e02 [project @ 1995-12-24 07:00:22 by jwe]
jwe
parents: 1556
diff changeset
2179
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2180 Do internal array bounds checking: $BOUNDS_CHECKING
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2181 Build static libraries: $STATIC_LIBS
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2182 Build shared libraries: $SHARED_LIBS
4128
919b2f6573ee [project @ 2002-10-25 20:36:14 by jwe]
jwe
parents: 4126
diff changeset
2183 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG
4110
b9238356dd07 [project @ 2002-10-17 16:14:44 by jwe]
jwe
parents: 4105
diff changeset
2184 Include support for GNU readline: $USE_READLINE
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2185 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
2186 ])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2187
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2188 warn_msg_printed=false
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2189
4469
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2190 if $ENABLE_DYNAMIC_LINKING; then
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2191 if $SHARED_LIBS; then
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2192 true
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2193 else
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2194 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
2195 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
2196 warn_msg_printed=true
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2197 fi
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2198 fi
53ee020af847 [project @ 2003-07-26 03:45:10 by jwe]
jwe
parents: 4449
diff changeset
2199
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2200 if test -n "$gxx_only"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2201 AC_MSG_WARN([$gxx_only])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2202 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2203 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2204
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2205 if test -n "$warn_gcc_version"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2206 AC_MSG_WARN([$warn_gcc_version])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2207 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2208 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2209
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2210 if test -n "$warn_gcc_only"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2211 AC_MSG_WARN([$warn_gcc_only])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2212 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2213 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2214
3825
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2215 if test -n "$warn_readline"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2216 AC_MSG_WARN([$warn_readline])
3825
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2217 warn_msg_printed=true
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2218 fi
74255bd05bdd [project @ 2001-04-26 19:50:03 by jwe]
jwe
parents: 3824
diff changeset
2219
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2220 if test -n "$warn_termlibs"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2221 AC_MSG_WARN([$warn_termlibs])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2222 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2223 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2224
3673
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2225 if test -n "$warn_gperf"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2226 AC_MSG_WARN([$warn_gperf])
3673
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2227 warn_msg_printed=true
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2228 fi
e0b46234555e [project @ 2000-06-05 18:28:54 by jwe]
jwe
parents: 3620
diff changeset
2229
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2230 if test -n "$warn_flex"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2231 AC_MSG_WARN([$warn_flex])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2232 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2233 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2234
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2235 if test -n "$warn_bison"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2236 AC_MSG_WARN([$warn_bison])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2237 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2238 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2239
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2240 if test -n "$warn_less"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2241 AC_MSG_WARN([$warn_less])
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2242 warn_msg_printed=true
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2243 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2244
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2245 if test -n "$warn_umfpack"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2246 AC_MSG_WARN([$warn_umfpack])
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2247 warn_msg_printed=true
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2248 fi
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2249
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2250 if test -n "$warn_qrupdate"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2251 AC_MSG_WARN([$warn_qrupdate])
8547
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2252 warn_msg_printed=true
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2253 fi
d66c9b6e506a imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents: 8417
diff changeset
2254
7619
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2255 if test -n "$warn_amd"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2256 AC_MSG_WARN([$warn_amd])
7619
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2257 warn_msg_printed=true
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2258 fi
56012914972a Add the amd function
David Bateman <dbateman@free.fr>
parents: 7601
diff changeset
2259
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2260 if test -n "$warn_colamd"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2261 AC_MSG_WARN([$warn_colamd])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2262 warn_msg_printed=true
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2263 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2264
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2265 if test -n "$warn_ccolamd"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2266 AC_MSG_WARN([$warn_ccolamd])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2267 warn_msg_printed=true
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2268 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2269
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2270 if test -n "$warn_cholmod"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2271 AC_MSG_WARN([$warn_cholmod])
5451
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2272 warn_msg_printed=true
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2273 fi
ed08548b9054 [project @ 2005-09-15 19:52:50 by jwe]
jwe
parents: 5414
diff changeset
2274
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2275 if test -n "$warn_cxsparse"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2276 AC_MSG_WARN([$warn_cxsparse])
5703
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2277 warn_msg_printed=true
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2278 fi
1199fc86582d [project @ 2006-03-21 19:46:19 by jwe]
jwe
parents: 5648
diff changeset
2279
6335
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2280 if test -n "$warn_curl"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2281 AC_MSG_WARN([$warn_curl])
6335
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2282 warn_msg_printed=true
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2283 fi
de4ae354c831 [project @ 2007-02-21 18:19:07 by jwe]
jwe
parents: 6333
diff changeset
2284
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2285 if test -n "$warn_fftw"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2286 AC_MSG_WARN([$warn_fftw])
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2287 warn_msg_printed=true
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2288 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2289
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2290 if test -n "$warn_glpk"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2291 AC_MSG_WARN([$warn_glpk])
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2292 warn_msg_printed=true
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2293 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2294
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2295 if test -n "$warn_magick"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2296 AC_MSG_WARN([$warn_magick])
7926
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2297 warn_msg_printed=true
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2298 fi
d74f996e005d __magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents: 7921
diff changeset
2299
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2300 if test -n "$warn_hdf5"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2301 AC_MSG_WARN([$warn_hdf5])
5203
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2302 warn_msg_printed=true
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2303 fi
dbeafbc0ff64 [project @ 2005-03-15 00:58:55 by jwe]
jwe
parents: 5194
diff changeset
2304
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2305 if test -n "$warn_regex"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2306 AC_MSG_WARN([$warn_regex])
6133
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2307 warn_msg_printed=true
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2308 fi
e0065af38cf4 [project @ 2006-11-02 03:33:50 by jwe]
jwe
parents: 6122
diff changeset
2309
6025
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2310 if test -n "$warn_pcre"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2311 AC_MSG_WARN([$warn_pcre])
6025
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2312 warn_msg_printed=true
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2313 fi
bb0c9f97fe4f [project @ 2006-10-03 19:21:09 by jwe]
jwe
parents: 6024
diff changeset
2314
6829
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2315 if test -n "$warn_qhull"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2316 AC_MSG_WARN([$warn_qhull])
6829
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2317 warn_msg_printed=true
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2318 fi
6c85f7d37e61 [project @ 2007-08-24 20:23:21 by dbateman]
dbateman
parents: 6823
diff changeset
2319
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2320 if test -n "$warn_zlib"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2321 AC_MSG_WARN([$warn_zlib])
5270
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2322 warn_msg_printed=true
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2323 fi
a313e928afb1 [project @ 2005-04-06 19:22:03 by dbateman]
dbateman
parents: 5235
diff changeset
2324
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2325 if test -n "$warn_ghostscript"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2326 AC_MSG_WARN([$warn_ghostscript])
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2327 warn_msg_printed=true
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2328 fi
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2329
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2330 if test -n "$warn_texi2dvi"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2331 AC_MSG_WARN([$warn_texi2dvi])
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2332 warn_msg_printed=true
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2333 fi
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2334
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2335 if test -n "$warn_texi2pdf"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2336 AC_MSG_WARN([$warn_texi2pdf])
5934
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2337 warn_msg_printed=true
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2338 fi
8702f00329bf [project @ 2006-08-17 20:29:51 by jwe]
jwe
parents: 5913
diff changeset
2339
10092
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
2340 if test -n "$warn_docs"; then
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
2341 AC_MSG_WARN([$warn_docs])
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
2342 warn_msg_printed=true
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
2343 fi
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10077
diff changeset
2344
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2345 if test -n "$warn_64_bit"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2346 AC_MSG_WARN([$warn_64_bit])
5275
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2347 warn_msg_printed=true
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2348 fi
23b37da9fd5b [project @ 2005-04-08 16:07:35 by jwe]
jwe
parents: 5270
diff changeset
2349
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2350 if $USE_64_BIT_IDX_T; then
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2351 AC_MSG_WARN([])
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2352 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
2353 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
2354 AC_MSG_WARN([])
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
2355 AC_MSG_WARN([Your Fortran compiler must have an option to generate])
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
2356 AC_MSG_WARN([code with 8 byte signed INTEGER values. This option])
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
2357 AC_MSG_WARN([should be specified in the F77_INTEGER_8_FLAG variable])
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
2358 AC_MSG_WARN([Make. This should work automatically for gfortran. If])
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
2359 AC_MSG_WARN([you use another compiler, you will need to set this])
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
2360 AC_MSG_WARN([variable on the configure command line. You must also])
12195
d25dfa9ed18b remove configure checks for ARPACK
John W. Eaton <jwe@octave.org>
parents: 12169
diff changeset
2361 AC_MSG_WARN([compile the BLAS, LAPACK, QRUPDATE, and SuiteSparse])
10331
6a50aa2cdf00 never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents: 10266
diff changeset
2362 AC_MSG_WARN([libraries to use 8 byte signed integers for array indexing.])
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2363 AC_MSG_WARN([])
5857
6a558a8763df [project @ 2006-06-13 16:43:44 by jwe]
jwe
parents: 5854
diff changeset
2364 warn_msg_printed=true
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2365 fi
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2366
10471
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2367 if $USE_OPENMP; then
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2368 AC_MSG_WARN([])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2369 AC_MSG_WARN([You used the EXPERIMENTAL --enable-openmp option.])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2370 AC_MSG_WARN([Are you sure that is what you want to do?])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2371 AC_MSG_WARN([])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2372 AC_MSG_WARN([This option enables experimental SMP multithreding])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2373 AC_MSG_WARN([code that has had very little testing. There is no])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2374 AC_MSG_WARN([certainity that the results returned by Octave with])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2375 AC_MSG_WARN([this option enabled will be correct.])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2376 AC_MSG_WARN([])
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2377 warn_msg_printed=true
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2378 fi
bcabc1c4f20c Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents: 10456
diff changeset
2379
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
2380 native_graphics=true
11219
29d515b9d30c configure.ac: fix typo where variable was missing leading '$'.
Rik <octave@nomad.inbox5.com>
parents: 11216
diff changeset
2381 if test -n "$warn_opengl"; then
11208
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
2382 AC_MSG_WARN([$warn_opengl])
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
2383 native_graphics=false
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
2384 warn_msg_printed=true
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
2385 fi
a44ba1cdfbb5 handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents: 11119
diff changeset
2386
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
2387 if test -n "$warn_freetype"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2388 AC_MSG_WARN([$warn_freetype])
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
2389 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
2390 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
2391 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
2392
9403
4af6e29449c1 [mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents: 9259
diff changeset
2393 if test -n "$warn_fontconfig"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2394 AC_MSG_WARN([$warn_fontconfig])
9403
4af6e29449c1 [mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents: 9259
diff changeset
2395 native_graphics=false
4af6e29449c1 [mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents: 9259
diff changeset
2396 warn_msg_printed=true
4af6e29449c1 [mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents: 9259
diff changeset
2397 fi
4af6e29449c1 [mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents: 9259
diff changeset
2398
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
2399 if test -n "$warn_fltk_config"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2400 AC_MSG_WARN([$warn_fltk_config])
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
2401 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
2402 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
2403 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
2404
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
2405 if test -n "$warn_fltk_opengl"; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2406 AC_MSG_WARN([$warn_fltk_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
2407 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
2408 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
2409 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
2410
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
2411 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
2412 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
2413 else
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2414 AC_MSG_WARN([])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2415 AC_MSG_WARN([I didn't find the necessary libraries to compile native])
10011
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2416 AC_MSG_WARN([graphics. It isn't necessary to have native graphics,])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2417 AC_MSG_WARN([but you will need to have gnuplot installed or you won't])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2418 AC_MSG_WARN([be able to use any of Octave's plotting commands])
7834
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2419 AC_MSG_WARN([])
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2420 warn_msg_printed=true
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2421 fi
caab78e7e377 added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents: 7825
diff changeset
2422
10011
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2423 if test -n "$warn_gnuplot"; then
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2424 if $native_graphics; then
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2425 AC_MSG_WARN([])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2426 AC_MSG_WARN([I didn't find gnuplot. Plotting commands will use the])
11576
8ac9687dbe9f rename backend to graphics_toolkit
John W. Eaton <jwe@octave.org>
parents: 11542
diff changeset
2427 AC_MSG_WARN([native graphics toolkit.])
10011
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2428 else
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2429 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2430 AC_MSG_WARN([installed, but you won't be able to use any of Octave's])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2431 AC_MSG_WARN([plotting commands without it.])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2432 fi
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2433 AC_MSG_WARN([])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2434 AC_MSG_WARN([If gnuplot is installed, but isn't in your path, you can])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2435 AC_MSG_WARN([tell Octave where to find it by using the gnuplot_binary])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2436 AC_MSG_WARN([function. For example,])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2437 AC_MSG_WARN([])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2438 AC_MSG_WARN([gnuplot_binary ("/full/path/and/name/of/gnuplot/binary")])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2439 AC_MSG_WARN([])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2440 AC_MSG_WARN([at the Octave prompt.])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2441 AC_MSG_WARN([])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2442 AC_MSG_WARN([Setting default value to $GNUPLOT])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2443 AC_MSG_WARN([])
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2444
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2445 warn_msg_printed=true
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2446 fi
411325ce32d7 Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents: 10004
diff changeset
2447
6191
7498bfad5410 [project @ 2006-11-30 17:32:20 by jwe]
jwe
parents: 6186
diff changeset
2448 if $warn_msg_printed; then
10003
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2449 AC_MSG_NOTICE([])
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2450 AC_MSG_NOTICE([NOTE: libraries may be skipped if a library is not found OR])
2ea3110e15ed Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents: 9989
diff changeset
2451 AC_MSG_NOTICE([NOTE: if the library on your system is missing required features.])
6161
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2452 fi
4d90ee4061ef [project @ 2006-11-14 15:12:04 by jwe]
jwe
parents: 6149
diff changeset
2453
3105
f936c7f5074f [project @ 1997-11-19 04:36:17 by jwe]
jwe
parents: 3085
diff changeset
2454 ### End of configure.