Mercurial > hg > octave-nkf
annotate configure.ac @ 14863:3ff18e21c742 gui
Added a few comments.
* files-dockwidget.h: Added comments.
* history-dockwidget.h: Added comments.
author | Jacob Dawid <jacob.dawid@gmail.com> |
---|---|
date | Mon, 16 Jul 2012 16:42:25 -0400 |
parents | 8e9f2cfa114d |
children | fabc0e37ead1 |
rev | line source |
---|---|
405 | 1 dnl configure.in |
2 dnl | |
5 | 3 dnl Process this file with autoconf to produce a configure script. |
4 dnl | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
14103
diff
changeset
|
5 dnl Copyright (C) 1993-2012 John W. Eaton |
869 | 6 ### |
7 ### This file is part of Octave. | |
8 ### | |
9 ### Octave is free software; you can redistribute it and/or modify it | |
10 ### under the terms of the GNU General Public License as published by the | |
7016 | 11 ### Free Software Foundation; either version 3 of the License, or (at |
12 ### your option) any later version. | |
869 | 13 ### |
14 ### Octave is distributed in the hope that it will be useful, but WITHOUT | |
15 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
16 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
17 ### for more details. | |
18 ### | |
19 ### You should have received a copy of the GNU General Public License | |
7016 | 20 ### along with Octave; see the file COPYING. If not, see |
21 ### <http://www.gnu.org/licenses/>. | |
869 | 22 |
4587 | 23 ### Preserve CFLAGS and CXXFLAGS from the environment before doing |
24 ### anything else because we don't know which macros might call | |
25 ### AC_PROG_CC or AC_PROG_CXX. | |
26 | |
27 EXTERN_CFLAGS="$CFLAGS" | |
28 EXTERN_CXXFLAGS="$CXXFLAGS" | |
29 | |
14296
6cb3b158e973
maint: Bump Octave version to development numbering of 3.7.0+
Rik <octave@nomad.inbox5.com>
parents:
14204
diff
changeset
|
30 AC_INIT([GNU Octave], [3.7.0+], [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" |
14204 | 34 OCTAVE_API_VERSION_NUMBER="48" |
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+" |
14393 | 36 OCTAVE_RELEASE_DATE="2012-02-22" |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
14103
diff
changeset
|
37 OCTAVE_COPYRIGHT="Copyright (C) 2012 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 | 44 AC_REVISION($Revision: 1.603 $) |
9909 | 45 AC_PREREQ([2.62]) |
3887 | 46 AC_CONFIG_SRCDIR([src/octave.cc]) |
9906 | 47 AC_CONFIG_HEADER([config.h]) |
9946 | 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 | 50 |
9946 | 51 AM_INIT_AUTOMAKE([1.11 tar-ustar]) |
52 | |
5844 | 53 OCTAVE_HOST_TYPE |
54 | |
3887 | 55 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
56 | |
6090 | 57 dnl FIXME -- we should probably only generate this file if it is missing. |
58 ### Produce unistd.h for MSVC target, this simplifies changes in | |
59 ### Octave source tree and avoid problems with lex-generated code. | |
60 case "$canonical_host_type" in | |
61 *-*-msdosmsvc) | |
62 AC_MSG_NOTICE([Generating replacement for <unistd.h> for MSVC]) | |
63 cat << \EOF > unistd.h | |
64 /* File generated by configure script. */ | |
65 #include <direct.h> | |
66 #include <io.h> | |
67 #include <process.h> | |
68 EOF | |
69 CPPFLAGS="-I. $CPPFLAGS" | |
70 ;; | |
71 esac | |
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 | 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 | 92 ### Path separator. |
93 sepchar=: | |
94 AC_ARG_WITH(sepchar, | |
5842 | 95 [AS_HELP_STRING([--with-sepchar=<char>], |
5844 | 96 [use <char> as the path separation character])]) |
5451 | 97 case $with_sepchar in |
98 yes | "") | |
99 case "$canonical_host_type" in | |
6090 | 100 *-*-mingw* | *-*-msdosmsvc) |
12451 | 101 sepchar=';' |
5451 | 102 ;; |
103 esac | |
104 ;; | |
105 no) | |
106 AC_MSG_ERROR([You are required to define a path separation character]) | |
107 ;; | |
108 *) | |
109 sepchar=$with_sepchar | |
110 ;; | |
111 esac | |
112 AC_SUBST(sepchar) | |
113 AC_DEFINE_UNQUOTED(SEPCHAR, ['$sepchar'], [Define this to be the path separator for your system, as a character constant.]) | |
114 AC_DEFINE_UNQUOTED(SEPCHAR_STR, ["$sepchar"], [Define this to the path separator, as a string.]) | |
115 | |
2223 | 116 ### some defaults |
117 | |
2813 | 118 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1') |
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') |
14614
4e9dc46d4125
handle texinfo macros consistently in help system and manual
John W. Eaton <jwe@octave.org>
parents:
14605
diff
changeset
|
121 OCTAVE_SET_DEFAULT(texi_macros_file, '$(octetcdir)/macros.texi') |
2813 | 122 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
|
123 OCTAVE_SET_DEFAULT(octincludedir, '$(includedir)/octave-$(version)/octave') |
3029 | 124 OCTAVE_SET_DEFAULT(fcnfiledir, '$(datadir)/octave/$(version)/m') |
2813 | 125 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m') |
4449 | 126 OCTAVE_SET_DEFAULT(localapifcnfiledir, |
5778 | 127 '$(datadir)/octave/site/$(api_version)/m') |
3597 | 128 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
|
129 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
|
130 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave/$(version)') |
3029 | 131 OCTAVE_SET_DEFAULT(archlibdir, |
3130 | 132 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)') |
3029 | 133 OCTAVE_SET_DEFAULT(localarchlibdir, |
3130 | 134 '$(libexecdir)/octave/site/exec/$(canonical_host_type)') |
5909 | 135 OCTAVE_SET_DEFAULT(localapiarchlibdir, |
136 '$(libexecdir)/octave/$(api_version)/site/exec/$(canonical_host_type)') | |
3597 | 137 OCTAVE_SET_DEFAULT(localverarchlibdir, |
138 '$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)') | |
3029 | 139 OCTAVE_SET_DEFAULT(octfiledir, |
12710
762d10c77277
maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents:
12538
diff
changeset
|
140 '$(libdir)/octave/$(version)/oct/$(canonical_host_type)') |
3029 | 141 OCTAVE_SET_DEFAULT(localoctfiledir, |
12710
762d10c77277
maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents:
12538
diff
changeset
|
142 '$(libdir)/octave/site/oct/$(canonical_host_type)') |
4449 | 143 OCTAVE_SET_DEFAULT(localapioctfiledir, |
12710
762d10c77277
maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents:
12538
diff
changeset
|
144 '$(libdir)/octave/site/oct/$(api_version)/$(canonical_host_type)') |
3597 | 145 OCTAVE_SET_DEFAULT(localveroctfiledir, |
12710
762d10c77277
maint: use libdir for .oct files, not libexecdir
John W. Eaton <jwe@octave.org>
parents:
12538
diff
changeset
|
146 '$(libdir)/octave/$(version)/site/oct/$(canonical_host_type)') |
3029 | 147 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib') |
1667 | 148 |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
149 ### Find pkg-config executable (sets $PKG_CONFIG) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
150 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
151 PKG_PROG_PKG_CONFIG |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
152 |
2155 | 153 ### Make configure args available for other uses. |
154 | |
155 config_opts=$ac_configure_args | |
156 AC_SUBST(config_opts) | |
157 | |
2813 | 158 ### Make it possible to have Octave's array and matrix classes do bounds |
2108 | 159 ### checking on element references. This slows some operations down a |
2813 | 160 ### bit, so it is turned off by default. |
2108 | 161 |
2450 | 162 BOUNDS_CHECKING=false |
2108 | 163 AC_ARG_ENABLE(bounds-check, |
5844 | 164 [AS_HELP_STRING([--enable-bounds-check], |
7091 | 165 [bounds checking for indexing in internal array classes (default is no)])], |
3060 | 166 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) |
2108 | 167 if $BOUNDS_CHECKING; then |
3887 | 168 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) |
2108 | 169 fi |
170 | |
13838
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
171 USE_OCTAVE_ALLOCATOR=false |
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
172 AC_ARG_ENABLE(octave-allocator, |
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
173 [AS_HELP_STRING([--enable-octave-allocator], |
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
174 [use the obsolete octave_allocator class for many of Octave's objects (mostly octave_value types). You probably do NOT want to enable this feature. (default is no)])], |
13985
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
175 [if test "$enableval" = yes; then USE_OCTAVE_ALLOCATOR=true; fi], []) |
13838
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
176 if $USE_OCTAVE_ALLOCATOR; then |
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
177 AC_DEFINE(USE_OCTAVE_ALLOCATOR, 1, [Define to use octave_allocator class.]) |
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
178 fi |
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
179 |
13985
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
180 USE_ATOMIC_REFCOUNT=false |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
181 AC_ARG_ENABLE(atomic-refcount, |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
182 [AS_HELP_STRING([--enable-atomic-refcount], |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
183 [use atomic operations for internal reference counting. This is required for thread-safe behavior. (default is no)])], |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
184 [if test "$enableval" = yes; then USE_ATOMIC_REFCOUNT=true; fi], []) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
185 if $USE_ATOMIC_REFCOUNT; then |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
186 AC_DEFINE(USE_ATOMIC_REFCOUNT, 1, [Define to use atomic operations for reference counting.]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
187 fi |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
188 |
10092
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
189 ### 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
|
190 ### 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
|
191 DOCDIR=doc |
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
192 AC_ARG_ENABLE(docs, |
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
193 [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
|
194 [if test "$enableval" = no; then |
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
195 DOCDIR= |
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
196 warn_docs="building documentation disabled; make dist will fail" |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
197 OCTAVE_CONFIGURE_WARNING([warn_docs]) |
10092
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
198 fi], []) |
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
199 AC_SUBST(DOCDIR) |
02453ee20140
allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents:
10077
diff
changeset
|
200 |
5275 | 201 ### If possible, use a 64-bit integer type for array dimensions and indexing. |
202 | |
203 USE_64_BIT_IDX_T=false | |
204 OCTAVE_IDX_TYPE=int | |
205 AC_ARG_ENABLE(64, | |
5844 | 206 [AS_HELP_STRING([--enable-64], |
5857 | 207 [(EXPERIMENTAL) use 64-bit integers for array dimensions and indexing])], |
5275 | 208 [if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi], []) |
209 if $USE_64_BIT_IDX_T; then | |
210 AC_CHECK_SIZEOF(void *) | |
211 AC_CHECK_SIZEOF(int) | |
212 AC_CHECK_SIZEOF(long) | |
213 if test $ac_cv_sizeof_void_p -eq 8; then | |
214 if test $ac_cv_sizeof_int -eq 8; then | |
215 OCTAVE_IDX_TYPE=int | |
216 elif test $ac_cv_sizeof_long -eq 8; then | |
217 OCTAVE_IDX_TYPE=long | |
5351 | 218 AC_DEFINE(IDX_TYPE_LONG, 1, [Define to 1 if octave index type is long]) |
5275 | 219 else |
5857 | 220 warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features" |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
221 OCTAVE_CONFIGURE_WARNING([warn_64_bit]) |
5275 | 222 USE_64_BIT_IDX_T=false |
223 fi | |
224 else | |
225 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" | |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
226 OCTAVE_CONFIGURE_WARNING([warn_64_bit]) |
5275 | 227 USE_64_BIT_IDX_T=false |
228 fi | |
229 fi | |
230 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
|
231 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
|
232 [Define to the type of octave_idx_type (64 or 32 bit signed integer)]) |
5275 | 233 if $USE_64_BIT_IDX_T; then |
234 AC_DEFINE(USE_64_BIT_IDX_T, 1, [Define if using 64-bit integers for array dimensions and indexing]) | |
235 fi | |
236 AC_SUBST(USE_64_BIT_IDX_T) | |
237 | |
3215 | 238 ### It seems that there are some broken inline assembly functions in |
239 ### the GNU libc. Since I'm not sure how to test whether we are using | |
240 ### GNU libc, just disable them for all platforms. | |
241 | |
5844 | 242 AC_MSG_NOTICE([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) |
3887 | 243 AC_DEFINE(__NO_MATH_INLINES, 1, [Define if your version of GNU libc has buggy inline assembly code for math functions like exp.]) |
3215 | 244 |
869 | 245 ### See which C++ compiler to use (we expect to find g++). |
246 | |
405 | 247 AC_PROG_CXX |
248 AC_PROG_CXXCPP | |
869 | 249 |
250 ### Do special things for g++. | |
251 | |
2353 | 252 gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \ |
4368 | 253 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'` |
3107 | 254 |
405 | 255 case "$gxx_version" in |
9178
a6375c37dad4
update config stuff to gripe with g++-3.x
Jaroslav Hajek <highegg@gmail.com>
parents:
9176
diff
changeset
|
256 1.* | 2.[[0123456789]].* | 3.[[01234]].*) |
4843 | 257 AC_MSG_ERROR([g++ version $gxx_version will probably fail to compile Octave] |
258 ) | |
259 ;; | |
405 | 260 esac |
869 | 261 |
1894 | 262 CXX_VERSION= |
263 if test -n "$gxx_version"; then | |
264 CXX_VERSION="$gxx_version" | |
265 fi | |
266 AC_SUBST(CXX_VERSION) | |
267 | |
3107 | 268 OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL |
3769 | 269 OCTAVE_CXX_ISO_COMPLIANT_LIBRARY |
5854 | 270 OCTAVE_CXX_BROKEN_REINTERPRET_CAST |
3107 | 271 |
869 | 272 ### See which C compiler to use (we expect to find gcc). |
273 | |
5 | 274 AC_PROG_CC |
405 | 275 AC_PROG_CPP |
832 | 276 AC_PROG_GCC_TRADITIONAL |
869 | 277 |
9946 | 278 ### gnulib |
279 | |
280 gl_EARLY | |
281 gl_INIT | |
282 | |
869 | 283 ### Do special things for gcc. |
284 | |
2353 | 285 gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \ |
3107 | 286 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` |
405 | 287 case "$gcc_version" in |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
288 [12].*) |
3105 | 289 warn_gcc_version="gcc version $gcc_version is likely to cause problems" |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
290 OCTAVE_CONFIGURE_WARNING([warn_gcc_version]) |
405 | 291 ;; |
5 | 292 esac |
869 | 293 |
1894 | 294 CC_VERSION= |
295 if test -n "$gcc_version"; then | |
296 CC_VERSION="$gcc_version" | |
297 fi | |
298 AC_SUBST(CC_VERSION) | |
299 | |
3775 | 300 ### The flag to create dependency varies depending on the compier. |
301 | |
302 # Assume GCC. | |
6087 | 303 INCLUDE_DEPS=true |
3775 | 304 DEPEND_FLAGS="-M" |
305 DEPEND_EXTRA_SED_PATTERN="" | |
6087 | 306 if test "$GCC" = yes; then |
307 true | |
308 else | |
309 case "$canonical_host_type" in | |
310 sparc-sun-solaris2* | i386-pc-solaris2*) | |
3775 | 311 DEPEND_FLAGS="-xM1" |
312 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" | |
6087 | 313 ;; |
7451 | 314 *-*-msdosmsvc) |
315 ;; | |
10123
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
316 *-*-mingw*) |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
317 if test "$have_msvc" = "no"; then |
12451 | 318 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
|
319 fi |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
320 ;; |
6087 | 321 *) |
322 INCLUDE_DEPS=false | |
323 ;; | |
324 esac | |
325 fi | |
326 AC_SUBST(INCLUDE_DEPS) | |
3775 | 327 AC_SUBST(DEPEND_FLAGS) |
328 AC_SUBST(DEPEND_EXTRA_SED_PATTERN) | |
329 | |
10951 | 330 AX_PTHREAD |
9970
cc7ea6083774
configure.ac: use pthread flags and libs for tests
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
331 ### 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
|
332 ### 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
|
333 LIBS="$PTHREAD_LIBS $LIBS" |
cc7ea6083774
configure.ac: use pthread flags and libs for tests
John W. Eaton <jwe@octave.org>
parents:
9946
diff
changeset
|
334 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
|
335 |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
336 AC_PATH_X |
9915
ac711616bc03
configure.ac: fix HAVE_X definition
John W. Eaton <jwe@octave.org>
parents:
9909
diff
changeset
|
337 if test "$have_x" = "yes"; then |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
338 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
|
339 |
9049 | 340 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
|
341 X11_INCFLAGS="$x_includes" |
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
342 fi |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
343 AC_SUBST(X11_INCFLAGS) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
344 |
8770
af676d09da08
Fix test for X11 if "--without-x" is given.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8723
diff
changeset
|
345 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
|
346 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
|
347 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
|
348 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
|
349 [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
|
350 fi |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
351 AC_SUBST(X11_LIBS) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
352 fi |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
353 |
8595
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
354 ### 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
|
355 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
|
356 [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
|
357 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
|
358 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
|
359 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
|
360 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
|
361 AC_SUBST(CARBON_LIBS) |
8595
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
362 fi |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
363 |
9603
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
364 ### 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
|
365 ### floating-point intermediate results. |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
366 ### 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
|
367 ### 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
|
368 ### 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
|
369 ### 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
|
370 ### 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
|
371 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
|
372 [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
|
373 [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
|
374 [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
|
375 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
|
376 ac_float_truncate=) |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
377 |
8bea4e89326f
implement FLOAT_STORE to allow safer complex comparisons on x87
Jaroslav Hajek <highegg@gmail.com>
parents:
9596
diff
changeset
|
378 AC_DEFINE_UNQUOTED(FLOAT_TRUNCATE, $ac_float_truncate, |
12451 | 379 [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
|
380 |
5076 | 381 ### On Intel systems with gcc, we may need to compile with -mieee-fp |
382 ### and -ffloat-store to get full support for IEEE floating point. | |
2020 | 383 ### |
3126 | 384 ### On Alpha/OSF systems, we need -mieee. |
869 | 385 |
3126 | 386 ieee_fp_flag= |
350 | 387 case "$canonical_host_type" in |
6102 | 388 ## Keep this pattern first, so that it is preferred over the |
389 ## following pattern for x86. | |
3887 | 390 i[[3456789]]86-*-*) |
5076 | 391 if test "$GCC" = yes; then |
392 OCTAVE_CC_FLAG(-mieee-fp, [ | |
393 ieee_fp_flag=-mieee-fp | |
394 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" | |
5844 | 395 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CFLAGS])]) |
3126 | 396 |
5078 | 397 ### OCTAVE_CC_FLAG(-ffloat-store, [ |
398 ### float_store_flag=-ffloat-store | |
399 ### XTRA_CFLAGS="$XTRA_CFLAGS -ffloat-store" | |
400 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CFLAGS])]) | |
5076 | 401 fi |
402 if test "$GXX" = yes; then | |
403 OCTAVE_CXX_FLAG(-mieee-fp, [ | |
12451 | 404 ieee_fp_flag=-mieee-fp |
405 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" | |
406 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CXXFLAGS])]) | |
5076 | 407 |
5078 | 408 ### OCTAVE_CXX_FLAG(-ffloat-store, [ |
409 ### float_store_flag=-ffloat-store | |
410 ### XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ffloat-store" | |
411 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CXXFLAGS])]) | |
5076 | 412 fi |
324 | 413 ;; |
3127 | 414 alpha*-*-*) |
4284 | 415 if test "$GCC" = yes; then |
4812 | 416 OCTAVE_CC_FLAG(-mieee, [ |
12451 | 417 ieee_fp_flag=-mieee |
418 XTRA_CFLAGS="$XTRA_CFLAGS -mieee" | |
419 AC_MSG_NOTICE([adding -mieee to XTRA_CFLAGS])]) | |
5076 | 420 else |
421 OCTAVE_CC_FLAG(-ieee, [ | |
12451 | 422 ieee_fp_flag=-ieee |
423 XTRA_CFLAGS="$XTRA_CFLAGS -ieee" | |
424 AC_MSG_NOTICE([adding -ieee to XTRA_CFLAGS])]) | |
5076 | 425 fi |
426 if test "$GXX" = yes; then | |
4812 | 427 OCTAVE_CXX_FLAG(-mieee, [ |
12451 | 428 ieee_fp_flag=-mieee |
429 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee" | |
430 AC_MSG_NOTICE([adding -mieee to XTRA_CXXFLAGS])]) | |
4284 | 431 else |
432 OCTAVE_CXX_FLAG(-ieee, [ | |
12451 | 433 ieee_fp_flag=-ieee |
434 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee" | |
435 AC_MSG_NOTICE([adding -ieee to XTRA_CXXFLAGS])]) | |
4284 | 436 fi |
2020 | 437 ;; |
3176 | 438 *ibm-aix4*) |
3351 | 439 OCTAVE_CC_FLAG(-mminimal-toc, [ |
440 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"]) | |
3176 | 441 |
3351 | 442 OCTAVE_CXX_FLAG(-mminimal-toc, [ |
443 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"]) | |
3176 | 444 ;; |
324 | 445 esac |
3126 | 446 |
10471
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
447 ## 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
|
448 ## 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
|
449 USE_OPENMP=false |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
450 AC_ARG_ENABLE(openmp, |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
451 [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
|
452 [(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
|
453 [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
|
454 if $USE_OPENMP; then |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
455 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
|
456 *-*-mingw* | *-*-cygwin* | *-*-gnu*) |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
457 OCTAVE_CHECK_OPENMP(-fopenmp) |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
458 ;; |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
459 *-*-msdosmsvc) |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
460 ## 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
|
461 OCTAVE_CHECK_OPENMP(-openmp) |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
462 ;; |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
463 ## 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
|
464 esac |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
465 fi |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
466 |
3126 | 467 AC_SUBST(XTRA_CFLAGS) |
468 AC_SUBST(XTRA_CXXFLAGS) | |
869 | 469 |
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
|
470 ## 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
|
471 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
|
472 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
|
473 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
|
474 |
1667 | 475 ### Use -static if compiling on Alpha OSF/1 1.3 systems. |
476 | |
477 case "$canonical_host_type" in | |
3127 | 478 alpha*-dec-osf1.3) |
1667 | 479 LD_STATIC_FLAG=-static |
480 ;; | |
481 esac | |
1679 | 482 if test -n "$LD_STATIC_FLAG"; then |
5844 | 483 AC_MSG_NOTICE([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG]) |
1679 | 484 fi |
485 AC_SUBST(LD_STATIC_FLAG) | |
1667 | 486 |
4094 | 487 ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are |
488 ### the compilers that we use for building tools on the build system. | |
4098 | 489 ### For now, we assume that the only cross compiling we can do is |
4298 | 490 ### with gcc on a Unixy system, but the dedicated hacker can override these. |
4094 | 491 |
492 if test "$cross_compiling" = yes; then | |
493 BUILD_CC="gcc" | |
494 BUILD_CFLAGS="-O2 -g" | |
495 BUILD_CXX="g++" | |
496 BUILD_CXXFLAGS="-O2 -g" | |
4298 | 497 BUILD_LDFLAGS="" |
4098 | 498 BUILD_EXEEXT="" |
4094 | 499 else |
4298 | 500 BUILD_CC='$(CC)' |
501 BUILD_CFLAGS='$(CFLAGS)' | |
502 BUILD_CXX='$(CXX)' | |
503 BUILD_CXXFLAGS='$(CXXFLAGS)' | |
504 BUILD_LDFLAGS='$(LDFLAGS)' | |
4284 | 505 case "$canonical_host_type" in |
506 sparc-sun-solaris2*) | |
507 if test "$GCC" != yes; then | |
4298 | 508 ## The Sun C++ compiler never seems to complete compiling |
12451 | 509 ## gendoc.cc unless we reduce the optimization level... |
510 BUILD_CXXFLAGS="-g -O1" | |
4284 | 511 fi |
512 ;; | |
513 esac | |
4298 | 514 BUILD_EXEEXT='$(EXEEXT)' |
4094 | 515 fi |
516 | |
517 AC_ARG_VAR(BUILD_CC, [build system C compiler (used if cross compiling)]) | |
518 AC_ARG_VAR(BUILD_CFLAGS, [build system C compiler flags (used if cross compiling)]) | |
519 AC_ARG_VAR(BUILD_CXX, [build system C++ compiler (used if cross compiling)]) | |
520 AC_ARG_VAR(BUILD_CXXFLAGS, [build system C++ compiler flags (used if cross compiling)]) | |
4298 | 521 AC_ARG_VAR(BUILD_LDFLAGS, [build system C++ compiler link flags (used if cross compiling)]) |
522 AC_ARG_VAR(BUILD_EXEEXT, [build system executable extension (used if cross compiling)]) | |
3222 | 523 |
3232 | 524 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
|
525 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
|
526 dnl in case -lm is needed to compile Fortran programs. |
3232 | 527 |
528 ### Look for math library. If found, this will add -lm to LIBS. | |
529 | |
530 case "$canonical_host_type" in | |
531 *-*-linux*) | |
532 AC_CHECK_LIB(m, sin, , , -lc) | |
533 ;; | |
534 *) | |
535 AC_CHECK_LIB(m, sin) | |
536 ;; | |
537 esac | |
538 | |
9596
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
539 ## Default FFLAGS is -O. |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
540 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
|
541 FFLAGS="-O" |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
542 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
543 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
544 ## 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
|
545 AC_PROG_F77 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
546 AC_F77_LIBRARY_LDFLAGS |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
547 AC_F77_DUMMY_MAIN |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
548 AC_F77_WRAPPERS |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
549 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
550 F77_TOLOWER=true |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
551 F77_APPEND_UNDERSCORE=true |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
552 F77_APPEND_EXTRA_UNDERSCORE=true |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
553 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
554 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
|
555 "upper case") F77_TOLOWER=false ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
556 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
557 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
|
558 "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
|
559 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
560 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
|
561 "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
|
562 esac |
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 case "$canonical_host_type" in |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
565 i[[3456789]]86-*-*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
566 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
|
567 OCTAVE_F77_FLAG(-mieee-fp) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
568 ### OCTAVE_F77_FLAG(-ffloat-store) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
569 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
570 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
571 alpha*-*-*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
572 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
|
573 OCTAVE_F77_FLAG(-mieee) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
574 else |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
575 OCTAVE_F77_FLAG(-ieee) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
576 OCTAVE_F77_FLAG(-fpe1) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
577 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
578 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
579 powerpc-apple-machten*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
580 FFLAGS= |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
581 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
582 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
583 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
584 if test -n "$FFLAGS"; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
585 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
|
586 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
587 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
588 AC_SUBST(F77_TOLOWER) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
589 AC_SUBST(F77_APPEND_UNDERSCORE) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
590 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
|
591 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
592 if test -z "$F77"; then |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
593 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
|
594 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
595 |
14550
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
596 OCTAVE_CHECK_FORTRAN_HAVE_ISNAN |
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
597 F77_ISNAN_MACRO= |
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
598 if test "x$octave_cv_fortran_have_isnan" = xno; then |
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
599 AC_MSG_NOTICE([substituting ISNAN(X) with X.NE.X in fortran sources]) |
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
600 F77_ISNAN_MACRO="s|ISNAN(\(@<:@^)@:>@*\))|(\1.NE.\1)|" |
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
601 fi |
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
602 AC_SUBST(F77_ISNAN_MACRO) |
bc4c574ab3b6
Add configure check for isnan in fortran.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14398
diff
changeset
|
603 |
9596
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
604 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
605 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
|
606 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
|
607 case "$F77" in |
10331
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
608 *gfortran*) |
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
609 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
|
610 *-fdefault-integer-8*) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
611 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
612 *) |
10331
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
613 case "$FFLAGS" in |
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
614 *-fdefault-integer-8*) |
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
615 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
|
616 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
|
617 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
|
618 ;; |
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
619 *) |
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
620 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
|
621 F77_INTEGER_8_FLAG="-fdefault-integer-8" |
12451 | 622 ## 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
|
623 $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
|
624 ;; |
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
625 esac |
9596
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
626 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
627 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
628 ;; |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
629 esac |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
630 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
|
631 OCTAVE_CHECK_FORTRAN_INTEGER_SIZE |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
632 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
633 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
|
634 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
|
635 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
636 else |
10331
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
637 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
|
638 fi |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
639 fi |
10331
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
640 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
|
641 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
642 FC=$F77 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
643 AC_SUBST(FC) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
644 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
645 OCTAVE_F77_FLAG(-ffloat-store, [ |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
646 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
|
647 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
|
648 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
|
649 ]) |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
650 |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
651 OCTAVE_IEEE754_DATA_FORMAT |
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
652 |
14725
fa48fd0f160f
Add configure check for templated bitwise operators.
Carlo de Falco <cdf@users.sourceforge.net>
parents:
14706
diff
changeset
|
653 OCTAVE_CXX_BITWISE_OP_TEMPLATES |
10380
60acc47c203f
configure checks for complex element setter/reference accessor methods
John W. Eaton <jwe@octave.org>
parents:
10346
diff
changeset
|
654 OCTAVE_CXX_COMPLEX_SETTERS |
60acc47c203f
configure checks for complex element setter/reference accessor methods
John W. Eaton <jwe@octave.org>
parents:
10346
diff
changeset
|
655 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
|
656 |
14776
0eb1b1eb2c76
Detect Carbon's CGDisplayBitsPerPixel during configure. Use it if present.
Ben Abbott <bpabbott@mac.com>
parents:
14725
diff
changeset
|
657 OCTAVE_CARBON_CGDISPLAYBITSPERPIXEL |
0eb1b1eb2c76
Detect Carbon's CGDisplayBitsPerPixel during configure. Use it if present.
Ben Abbott <bpabbott@mac.com>
parents:
14725
diff
changeset
|
658 |
6823 | 659 ### Check for the QHull library |
660 | |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
661 OCTAVE_CHECK_LIBRARY(qhull, QHull, |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
662 [Qhull library not found -- this will result in loss of functionality of some geometry functions.], |
14315
99428221b4e1
build: Add new location for Qhull2012 include files to build system.
Rik <octave@nomad.inbox5.com>
parents:
14204
diff
changeset
|
663 [libqhull/libqhull.h qhull/libqhull.h libqhull.h qhull/qhull.h qhull.h], [qh_qhull], [], [], |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
664 [warn_qhull= |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
665 OCTAVE_CHECK_QHULL_VERSION |
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
666 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
|
667 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
|
668 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 | 669 |
12464
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
670 ### Check for pcre regex library. |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
671 |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
672 REGEX_LIBS= |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
673 |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
674 pcre_fail_msg="to build Octave, you must have the PCRE library and header files installed" |
7173 | 675 |
14025
9867be070ee1
use pcre/pcre.h if it is present
John W. Eaton <jwe@octave.org>
parents:
13985
diff
changeset
|
676 AC_CHECK_HEADERS([pcre.h pcre/pcre.h]) |
9867be070ee1
use pcre/pcre.h if it is present
John W. Eaton <jwe@octave.org>
parents:
13985
diff
changeset
|
677 |
12464
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
678 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
|
679 [ac_cv_pcre_h_macros_present], |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
680 [AC_EGREP_CPP([PCRE_HAS_MACROS_WE_NEED], [ |
14025
9867be070ee1
use pcre/pcre.h if it is present
John W. Eaton <jwe@octave.org>
parents:
13985
diff
changeset
|
681 #if defined (HAVE_PCRE_H) |
7173 | 682 #include <pcre.h> |
14025
9867be070ee1
use pcre/pcre.h if it is present
John W. Eaton <jwe@octave.org>
parents:
13985
diff
changeset
|
683 #elif defined (HAVE_PCRE_PCRE_H) |
9867be070ee1
use pcre/pcre.h if it is present
John W. Eaton <jwe@octave.org>
parents:
13985
diff
changeset
|
684 #include <pcre.h> |
9867be070ee1
use pcre/pcre.h if it is present
John W. Eaton <jwe@octave.org>
parents:
13985
diff
changeset
|
685 #error "NO PCRE HEADER" |
9867be070ee1
use pcre/pcre.h if it is present
John W. Eaton <jwe@octave.org>
parents:
13985
diff
changeset
|
686 #endif |
6133 | 687 #if defined (PCRE_INFO_NAMECOUNT) \ |
688 && defined (PCRE_INFO_NAMEENTRYSIZE) \ | |
689 && defined (PCRE_INFO_NAMETABLE) | |
690 PCRE_HAS_MACROS_WE_NEED | |
7173 | 691 #endif], ac_cv_pcre_h_macros_present=yes, ac_cv_pcre_h_macros_present=no)]) |
7169 | 692 |
12464
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
693 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
|
694 ## 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
|
695 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
|
696 if test $HAVE_PCRE_CONFIG = yes; then |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
697 XTRA_CXXFLAGS="$XTRA_CXXFLAGS `pcre-config --cflags`" |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
698 REGEX_LIBS="`pcre-config --libs`" |
7173 | 699 else |
12464
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
700 REGEX_LIBS="-lpcre" |
7173 | 701 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
|
702 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
|
703 LIBS="$REGEX_LIBS $LIBS" |
12464
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
704 AC_CHECK_FUNCS(pcre_compile, |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
705 [AC_SUBST(REGEX_LIBS)], |
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
706 [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
|
707 LIBS="$save_LIBS" |
7174 | 708 else |
12464
dfeea9cae79e
require PCRE to build Octave
John W. Eaton <jwe@octave.org>
parents:
12451
diff
changeset
|
709 AC_MSG_ERROR([$pcre_fail_msg]) |
6133 | 710 fi |
7169 | 711 |
5270 | 712 ### Check for ZLIB library. |
3820 | 713 |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
714 OCTAVE_CHECK_LIBRARY(z, ZLIB, |
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
715 [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
|
716 [zlib.h], [gzclearerr]) |
3687 | 717 |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
718 ### Check for HDF5 library. |
5270 | 719 |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
720 save_CPPFLAGS="$CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
721 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
722 save_LIBS="$LIBS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
723 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
|
724 OCTAVE_CHECK_LIBRARY(hdf5, HDF5, |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
725 [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
|
726 [hdf5.h], [H5Gget_num_objs], [], [], |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
727 [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
|
728 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
|
729 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
|
730 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
|
731 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
|
732 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
|
733 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
|
734 ]) |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
735 CPPFLAGS="$save_CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
736 LIBS="$save_LIBS" |
5270 | 737 |
738 | |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
739 # Subdirectory of libcruft to build if fftw is not found: |
5203 | 740 |
3827 | 741 FFT_DIR="fftpack" |
742 AC_SUBST(FFT_DIR) | |
743 | |
13685
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
744 dnl @synopsis BNV_HAVE_QT [--with-Qt-dir=DIR] [--with-Qt-lib-dir=DIR] [--with-Qt-lib=LIB] |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
745 dnl @synopsis BNV_HAVE_QT [--with-Qt-include-dir=DIR] [--with-Qt-bin-dir=DIR] [--with-Qt-lib-dir=DIR] [--with-Qt-lib=LIB] |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
746 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
747 dnl @summary Search for Trolltech's Qt GUI framework. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
748 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
749 dnl Searches common directories for Qt include files, libraries and Qt |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
750 dnl binary utilities. The macro supports several different versions of |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
751 dnl the Qt framework being installed on the same machine. Without |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
752 dnl options, the macro is designed to look for the latest library, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
753 dnl i.e., the highest definition of QT_VERSION in qglobal.h. By use of |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
754 dnl one or more options a different library may be selected. There are |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
755 dnl two different sets of options. Both sets contain the option |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
756 dnl --with-Qt-lib=LIB which can be used to force the use of a |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
757 dnl particular version of the library file when more than one are |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
758 dnl available. LIB must be in the form as it would appear behind the |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
759 dnl "-l" option to the compiler. Examples for LIB would be "qt-mt" for |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
760 dnl the multi-threaded version and "qt" for the regular version. In |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
761 dnl addition to this, the first set consists of an option |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
762 dnl --with-Qt-dir=DIR which can be used when the installation conforms |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
763 dnl to Trolltech's standard installation, which means that header files |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
764 dnl are in DIR/include, binary utilities are in DIR/bin and the library |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
765 dnl is in DIR/lib. The second set of options can be used to indicate |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
766 dnl individual locations for the header files, the binary utilities and |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
767 dnl the library file, in addition to the specific version of the |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
768 dnl library file. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
769 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
770 dnl The following shell variable is set to either "yes" or "no": |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
771 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
772 dnl have_qt |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
773 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
774 dnl Additionally, the following variables are exported: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
775 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
776 dnl QT_CXXFLAGS |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
777 dnl QT_LIBS |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
778 dnl QT_MOC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
779 dnl QT_UIC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
780 dnl QT_DIR |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
781 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
782 dnl which respectively contain an "-I" flag pointing to the Qt include |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
783 dnl directory (and "-DQT_THREAD_SUPPORT" when LIB is "qt-mt"), link |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
784 dnl flags necessary to link with Qt and X, the name of the meta object |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
785 dnl compiler and the user interface compiler both with full path, and |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
786 dnl finaly the variable QTDIR as Trolltech likes to see it defined (if |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
787 dnl possible). |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
788 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
789 dnl Example lines for Makefile.in: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
790 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
791 dnl CXXFLAGS = @QT_CXXFLAGS@ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
792 dnl MOC = @QT_MOC@ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
793 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
794 dnl After the variables have been set, a trial compile and link is |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
795 dnl performed to check the correct functioning of the meta object |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
796 dnl compiler. This test may fail when the different detected elements |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
797 dnl stem from different releases of the Qt framework. In that case, an |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
798 dnl error message is emitted and configure stops. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
799 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
800 dnl No common variables such as $LIBS or $CFLAGS are polluted. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
801 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
802 dnl Options: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
803 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
804 dnl --with-Qt-dir=DIR: DIR is equal to $QTDIR if you have followed the |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
805 dnl installation instructions of Trolltech. Header files are in |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
806 dnl DIR/include, binary utilities are in DIR/bin and the library is in |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
807 dnl DIR/lib. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
808 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
809 dnl --with-Qt-include-dir=DIR: Qt header files are in DIR. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
810 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
811 dnl --with-Qt-bin-dir=DIR: Qt utilities such as moc and uic are in DIR. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
812 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
813 dnl --with-Qt-lib-dir=DIR: The Qt library is in DIR. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
814 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
815 dnl --with-Qt-lib=LIB: Use -lLIB to link with the Qt library. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
816 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
817 dnl If some option "=no" or, equivalently, a --without-Qt-* version is |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
818 dnl given in stead of a --with-Qt-*, "have_qt" is set to "no" and the |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
819 dnl other variables are set to the empty string. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
820 dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
821 dnl @category InstalledPackages |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
822 dnl @author Bastiaan Veelo <Bastiaan@Veelo.net> |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
823 dnl @version 2006-03-12 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
824 dnl @license AllPermissive |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
825 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
826 dnl Copyright (C) 2001, 2002, 2003, 2005, 2006 Bastiaan Veelo |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
827 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
828 dnl THANKS! This code includes bug fixes and contributions made by: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
829 dnl Tim McClarren, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
830 dnl Dennis R. Weilert, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
831 dnl Qingning Huo, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
832 dnl Brian Mingus, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
833 dnl Jens Hannemann, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
834 dnl Pavel Roskin, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
835 dnl Scott J. Bertin. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
836 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
837 dnl ChangeLog |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
838 dnl 2006-03-12 * Hide output of ls and fix an m4 quoting problem (due to Scott J. Bertin). |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
839 dnl 2006-02-13 * Check compiler return value instead of parsing the error stream, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
840 dnl which detected warnings as false negatives (due to Jens Hannemann). |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
841 dnl 2006-02-02 * Spelling of "Success". |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
842 dnl * Fixed unsave test for $bnv_qt_lib without quotes. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
843 dnl * Put dnl in front of all comments. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
844 dnl * Changed -l$bnv_qt_lib_dir into -L$bnv_qt_lib_dir (all due to Pavel Roskin). |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
845 dnl 2006-01-19 * Support for 64bit architectures. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
846 dnl * Updated documentation. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
847 dnl 2006-01-18: * Fix "cat: bnv_qt_test.c: No such file or directory" (due to Jens Hannemann). |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
848 dnl * Hide output of failing ls. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
849 dnl 2006-01-11: * Check in /Developer on Mac OS X; Check in $QTDIR (due to Brian Mingus). |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
850 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
851 dnl Calls BNV_PATH_QT_DIRECT (contained in this file) as a subroutine. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
852 AC_DEFUN([BNV_HAVE_QT], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
853 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
854 AC_REQUIRE([AC_PROG_CXX]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
855 AC_REQUIRE([AC_PATH_X]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
856 AC_REQUIRE([AC_PATH_XTRA]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
857 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
858 AC_MSG_CHECKING(for Qt) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
859 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
860 AC_ARG_WITH([Qt-dir], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
861 [ --with-Qt-dir=DIR DIR is equal to $QTDIR if you have followed the |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
862 installation instructions of Trolltech. Header |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
863 files are in DIR/include, binary utilities are |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
864 in DIR/bin. The library is in DIR/lib, unless |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
865 --with-Qt-lib-dir is also set.]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
866 AC_ARG_WITH([Qt-include-dir], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
867 [ --with-Qt-include-dir=DIR |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
868 Qt header files are in DIR]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
869 AC_ARG_WITH([Qt-bin-dir], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
870 [ --with-Qt-bin-dir=DIR Qt utilities such as moc and uic are in DIR]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
871 AC_ARG_WITH([Qt-lib-dir], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
872 [ --with-Qt-lib-dir=DIR The Qt library is in DIR]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
873 AC_ARG_WITH([Qt-lib], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
874 [ --with-Qt-lib=LIB Use -lLIB to link with the Qt library]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
875 if test x"$with_Qt_dir" = x"no" || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
876 test x"$with_Qt_include-dir" = x"no" || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
877 test x"$with_Qt_bin_dir" = x"no" || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
878 test x"$with_Qt_lib_dir" = x"no" || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
879 test x"$with_Qt_lib" = x"no"; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
880 # user disabled Qt. Leave cache alone. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
881 have_qt="User disabled Qt." |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
882 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
883 # "yes" is a bogus option |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
884 if test x"$with_Qt_dir" = xyes; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
885 with_Qt_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
886 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
887 if test x"$with_Qt_include_dir" = xyes; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
888 with_Qt_include_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
889 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
890 if test x"$with_Qt_bin_dir" = xyes; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
891 with_Qt_bin_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
892 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
893 if test x"$with_Qt_lib_dir" = xyes; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
894 with_Qt_lib_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
895 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
896 if test x"$with_Qt_lib" = xyes; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
897 with_Qt_lib= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
898 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
899 # No Qt unless we discover otherwise |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
900 have_qt=no |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
901 # Check whether we are requested to link with a specific version |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
902 if test x"$with_Qt_lib" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
903 bnv_qt_lib="$with_Qt_lib" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
904 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
905 # Check whether we were supplied with an answer already |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
906 if test x"$with_Qt_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
907 have_qt=yes |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
908 bnv_qt_dir="$with_Qt_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
909 bnv_qt_include_dir="$with_Qt_dir/include" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
910 bnv_qt_bin_dir="$with_Qt_dir/bin" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
911 bnv_qt_lib_dir="$with_Qt_dir/lib" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
912 # Only search for the lib if the user did not define one already |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
913 if test x"$bnv_qt_lib" = x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
914 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
915 sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
916 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
917 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
918 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
919 # Use cached value or do search, starting with suggestions from |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
920 # the command line |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
921 AC_CACHE_VAL(bnv_cv_have_qt, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
922 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
923 # We are not given a solution and there is no cached value. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
924 bnv_qt_dir=NO |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
925 bnv_qt_include_dir=NO |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
926 bnv_qt_lib_dir=NO |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
927 if test x"$bnv_qt_lib" = x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
928 bnv_qt_lib=NO |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
929 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
930 BNV_PATH_QT_DIRECT |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
931 if test "$bnv_qt_dir" = NO || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
932 test "$bnv_qt_include_dir" = NO || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
933 test "$bnv_qt_lib_dir" = NO || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
934 test "$bnv_qt_lib" = NO; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
935 # Problem with finding complete Qt. Cache the known absence of Qt. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
936 bnv_cv_have_qt="have_qt=no" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
937 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
938 # Record where we found Qt for the cache. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
939 bnv_cv_have_qt="have_qt=yes \ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
940 bnv_qt_dir=$bnv_qt_dir \ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
941 bnv_qt_include_dir=$bnv_qt_include_dir \ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
942 bnv_qt_bin_dir=$bnv_qt_bin_dir \ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
943 bnv_qt_LIBS=\"$bnv_qt_LIBS\"" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
944 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
945 ])dnl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
946 eval "$bnv_cv_have_qt" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
947 fi # all $bnv_qt_* are set |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
948 fi # $have_qt reflects the system status |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
949 if test x"$have_qt" = xyes; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
950 QT_CXXFLAGS="-I$bnv_qt_include_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
951 if test x"$bnv_qt_lib" = xqt-mt; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
952 QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
953 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
954 QT_DIR="$bnv_qt_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
955 QT_LIBS="$bnv_qt_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
956 # If bnv_qt_dir is defined, utilities are expected to be in the |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
957 # bin subdirectory |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
958 if test x"$bnv_qt_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
959 if test -x "$bnv_qt_dir/bin/uic"; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
960 QT_UIC="$bnv_qt_dir/bin/uic" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
961 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
962 # Old versions of Qt don't have uic |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
963 QT_UIC= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
964 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
965 QT_MOC="$bnv_qt_dir/bin/moc" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
966 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
967 # Or maybe we are told where to look for the utilities |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
968 if test x"$bnv_qt_bin_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
969 if test -x "$bnv_qt_bin_dir/uic"; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
970 QT_UIC="$bnv_qt_bin_dir/uic" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
971 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
972 # Old versions of Qt don't have uic |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
973 QT_UIC= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
974 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
975 QT_MOC="$bnv_qt_bin_dir/moc" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
976 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
977 # Last possibility is that they are in $PATH |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
978 QT_UIC="`which uic`" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
979 QT_MOC="`which moc`" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
980 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
981 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
982 # All variables are defined, report the result |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
983 AC_MSG_RESULT([$have_qt: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
984 QT_CXXFLAGS=$QT_CXXFLAGS |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
985 QT_DIR=$QT_DIR |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
986 QT_LIBS=$QT_LIBS |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
987 QT_UIC=$QT_UIC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
988 QT_MOC=$QT_MOC]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
989 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
990 # Qt was not found |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
991 QT_CXXFLAGS= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
992 QT_DIR= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
993 QT_LIBS= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
994 QT_UIC= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
995 QT_MOC= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
996 AC_MSG_RESULT($have_qt) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
997 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
998 AC_SUBST(QT_CXXFLAGS) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
999 AC_SUBST(QT_DIR) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1000 AC_SUBST(QT_LIBS) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1001 AC_SUBST(QT_UIC) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1002 AC_SUBST(QT_MOC) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1003 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1004 #### Being paranoid: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1005 if test x"$have_qt" = xyes; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1006 AC_MSG_CHECKING(correct functioning of Qt installation) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1007 AC_CACHE_VAL(bnv_cv_qt_test_result, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1008 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1009 cat > bnv_qt_test.h << EOF |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1010 #include <qobject.h> |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1011 class Test : public QObject |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1012 { |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1013 Q_OBJECT |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1014 public: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1015 Test() {} |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1016 ~Test() {} |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1017 public slots: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1018 void receive() {} |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1019 signals: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1020 void send(); |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1021 }; |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1022 EOF |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1023 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1024 cat > bnv_qt_main.$ac_ext << EOF |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1025 #include "bnv_qt_test.h" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1026 #include <qapplication.h> |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1027 int main( int argc, char **argv ) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1028 { |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1029 QApplication app( argc, argv ); |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1030 Test t; |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1031 QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) ); |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1032 } |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1033 EOF |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1034 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1035 bnv_cv_qt_test_result="failure" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1036 bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1037 AC_TRY_EVAL(bnv_try_1) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1038 if test x"$ac_status" != x0; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1039 echo "$bnv_err_1" >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1040 echo "configure: could not run $QT_MOC on:" >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1041 cat bnv_qt_test.h >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1042 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1043 bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1044 AC_TRY_EVAL(bnv_try_2) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1045 if test x"$ac_status" != x0; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1046 echo "$bnv_err_2" >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1047 echo "configure: could not compile:" >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1048 cat moc_bnv_qt_test.$ac_ext >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1049 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1050 bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1051 AC_TRY_EVAL(bnv_try_3) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1052 if test x"$ac_status" != x0; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1053 echo "$bnv_err_3" >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1054 echo "configure: could not compile:" >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1055 cat bnv_qt_main.$ac_ext >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1056 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1057 bnv_try_4="$CXX $QT_LIBS $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o >/dev/null 2>/dev/null" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1058 AC_TRY_EVAL(bnv_try_4) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1059 if test x"$ac_status" != x0; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1060 echo "$bnv_err_4" >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1061 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1062 bnv_cv_qt_test_result="success" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1063 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1064 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1065 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1066 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1067 ])dnl AC_CACHE_VAL bnv_cv_qt_test_result |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1068 AC_MSG_RESULT([$bnv_cv_qt_test_result]); |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1069 if test x"$bnv_cv_qt_test_result" = "xfailure"; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1070 AC_MSG_ERROR([Failed to find matching components of a complete |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1071 Qt installation. Try using more options, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1072 see ./configure --help.]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1073 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1074 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1075 rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1076 bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1077 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1078 ]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1079 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1080 dnl Internal subroutine of BNV_HAVE_QT |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1081 dnl Set bnv_qt_dir bnv_qt_include_dir bnv_qt_bin_dir bnv_qt_lib_dir bnv_qt_lib |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1082 AC_DEFUN([BNV_PATH_QT_DIRECT], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1083 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1084 ## Binary utilities ## |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1085 if test x"$with_Qt_bin_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1086 bnv_qt_bin_dir=$with_Qt_bin_dir |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1087 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1088 ## Look for header files ## |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1089 if test x"$with_Qt_include_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1090 bnv_qt_include_dir="$with_Qt_include_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1091 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1092 # The following header file is expected to define QT_VERSION. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1093 qt_direct_test_header=qglobal.h |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1094 # Look for the header file in a standard set of common directories. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1095 bnv_include_path_list=" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1096 /usr/include |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1097 `ls -dr ${QTDIR}/include 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1098 `ls -dr /usr/include/qt* 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1099 `ls -dr /usr/lib/qt*/include 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1100 `ls -dr /usr/local/qt*/include 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1101 `ls -dr /opt/qt*/include 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1102 `ls -dr /Developer/qt*/include 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1103 " |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1104 for bnv_dir in $bnv_include_path_list; do |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1105 if test -r "$bnv_dir/$qt_direct_test_header"; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1106 bnv_dirs="$bnv_dirs $bnv_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1107 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1108 done |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1109 # Now look for the newest in this list |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1110 bnv_prev_ver=0 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1111 for bnv_dir in $bnv_dirs; do |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1112 bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1113 if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1114 bnv_qt_include_dir=$bnv_dir |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1115 bnv_prev_ver=$bnv_this_ver |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1116 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1117 done |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1118 fi dnl Found header files. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1119 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1120 # Are these headers located in a traditional Trolltech installation? |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1121 # That would be $bnv_qt_include_dir stripped from its last element: |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1122 bnv_possible_qt_dir=`dirname $bnv_qt_include_dir` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1123 if (test -x $bnv_possible_qt_dir/bin/moc) && |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1124 ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) || |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1125 (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1126 # Then the rest is a piece of cake |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1127 bnv_qt_dir=$bnv_possible_qt_dir |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1128 bnv_qt_bin_dir="$bnv_qt_dir/bin" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1129 if test x"$with_Qt_lib_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1130 bnv_qt_lib_dir="$with_Qt_lib_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1131 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1132 if (test -d $bnv_qt_dir/lib64); then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1133 bnv_qt_lib_dir="$bnv_qt_dir/lib64" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1134 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1135 bnv_qt_lib_dir="$bnv_qt_dir/lib" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1136 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1137 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1138 # Only look for lib if the user did not supply it already |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1139 if test x"$bnv_qt_lib" = xNO; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1140 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1141 sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1142 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1143 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1144 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1145 # There is no valid definition for $QTDIR as Trolltech likes to see it |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1146 bnv_qt_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1147 ## Look for Qt library ## |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1148 if test x"$with_Qt_lib_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1149 bnv_qt_lib_dir="$with_Qt_lib_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1150 # Only look for lib if the user did not supply it already |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1151 if test x"$bnv_qt_lib" = xNO; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1152 bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1153 sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1154 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1155 bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1156 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1157 # Normally, when there is no traditional Trolltech installation, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1158 # the library is installed in a place where the linker finds it |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1159 # automatically. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1160 # If the user did not define the library name, try with qt |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1161 if test x"$bnv_qt_lib" = xNO; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1162 bnv_qt_lib=qt |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1163 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1164 qt_direct_test_header=qapplication.h |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1165 qt_direct_test_main=" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1166 int argc; |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1167 char ** argv; |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1168 QApplication app(argc,argv); |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1169 " |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1170 # See if we find the library without any special options. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1171 # Don't add top $LIBS permanently yet |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1172 bnv_save_LIBS="$LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1173 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1174 bnv_qt_LIBS="$LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1175 bnv_save_CXXFLAGS="$CXXFLAGS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1176 CXXFLAGS="-I$bnv_qt_include_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1177 AC_TRY_LINK([#include <$qt_direct_test_header>], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1178 $qt_direct_test_main, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1179 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1180 # Success. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1181 # We can link with no special library directory. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1182 bnv_qt_lib_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1183 ], [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1184 # That did not work. Try the multi-threaded version |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1185 echo "Non-critical error, please neglect the above." >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1186 bnv_qt_lib=qt-mt |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1187 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1188 AC_TRY_LINK([#include <$qt_direct_test_header>], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1189 $qt_direct_test_main, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1190 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1191 # Success. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1192 # We can link with no special library directory. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1193 bnv_qt_lib_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1194 ], [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1195 # That did not work. Try the OpenGL version |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1196 echo "Non-critical error, please neglect the above." >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1197 bnv_qt_lib=qt-gl |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1198 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1199 AC_TRY_LINK([#include <$qt_direct_test_header>], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1200 $qt_direct_test_main, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1201 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1202 # Success. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1203 # We can link with no special library directory. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1204 bnv_qt_lib_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1205 ], [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1206 # That did not work. Maybe a library version I don't know about? |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1207 echo "Non-critical error, please neglect the above." >&AC_FD_CC |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1208 # Look for some Qt lib in a standard set of common directories. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1209 bnv_dir_list=" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1210 `echo $bnv_qt_includes | sed ss/includess` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1211 /lib |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1212 /usr/lib64 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1213 /usr/lib |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1214 /usr/local/lib64 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1215 /usr/local/lib |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1216 /opt/lib64 |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1217 /opt/lib |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1218 `ls -dr /usr/lib64/qt* 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1219 `ls -dr /usr/lib64/qt*/lib64 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1220 `ls -dr /usr/lib/qt* 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1221 `ls -dr /usr/local/qt* 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1222 `ls -dr /opt/qt* 2>/dev/null` |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1223 " |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1224 for bnv_dir in $bnv_dir_list; do |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1225 if ls $bnv_dir/libqt* >/dev/null 2>/dev/null; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1226 # Gamble that it's the first one... |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1227 bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p | |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1228 sed s@$bnv_dir/lib@@ | sed s/[[.]].*//`" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1229 bnv_qt_lib_dir="$bnv_dir" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1230 break |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1231 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1232 done |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1233 # Try with that one |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1234 LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1235 AC_TRY_LINK([#include <$qt_direct_test_header>], |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1236 $qt_direct_test_main, |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1237 [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1238 # Success. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1239 # We can link with no special library directory. |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1240 bnv_qt_lib_dir= |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1241 ], [ |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1242 # Leave bnv_qt_lib_dir defined |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1243 ]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1244 ]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1245 ]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1246 ]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1247 if test x"$bnv_qt_lib_dir" != x; then |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1248 bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1249 else |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1250 bnv_qt_LIBS="$LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1251 fi |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1252 LIBS="$bnv_save_LIBS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1253 CXXFLAGS="$bnv_save_CXXFLAGS" |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1254 fi dnl $with_Qt_lib_dir was not given |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1255 fi dnl Done setting up for non-traditional Trolltech installation |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1256 ]) |
8a688c3179dd
Added files for build system integration.
Jacob Dawid <jacob.dawid@googlemail.com>
parents:
13024
diff
changeset
|
1257 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1258 # Checks for FFTW header and library. |
3827 | 1259 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1260 OCTAVE_CHECK_LIBRARY(fftw3, FFTW3, |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1261 [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
|
1262 [fftw3.h], [fftw_plan_dft_1d]) |
3827 | 1263 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1264 OCTAVE_CHECK_LIBRARY(fftw3f, FFTW3F, |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1265 [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
|
1266 [fftw3.h], [fftwf_plan_dft_1d]) |
3827 | 1267 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1268 AM_CONDITIONAL([AMCOND_HAVE_FFTW], |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1269 [test -n "$FFTW3_LIBS" && test -n "$FFTW3F_LIBS"]) |
3827 | 1270 |
5235 | 1271 # Checks for GLPK header and library. |
1272 | |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1273 save_CPPFLAGS="$CPPFLAGS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1274 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
|
1275 save_LIBS="$LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1276 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1277 OCTAVE_CHECK_LIBRARY(glpk, GLPK, |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1278 [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
|
1279 [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
|
1280 LIBS="$save_LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1281 CPPFLAGS="$save_CPPFLAGS" |
5235 | 1282 |
6043 | 1283 # Checks for CURL header and library. |
1284 | |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1285 save_CPPFLAGS="$CPPFLAGS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1286 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
|
1287 save_LIBS="$LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1288 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
|
1289 OCTAVE_CHECK_LIBRARY(curl, cURL, |
9880 | 1290 [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
|
1291 [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
|
1292 LIBS="$save_LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1293 CPPFLAGS="$save_CPPFLAGS" |
6133 | 1294 |
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
|
1295 ### Graphics/ImageMagick++ |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1296 |
11216
5036b0ff9597
configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents:
11214
diff
changeset
|
1297 AC_ARG_WITH([magick], |
5036b0ff9597
configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents:
11214
diff
changeset
|
1298 [AS_HELP_STRING([--with-magick=LIB], |
11041 | 1299 [select library to use for image I/O (options: GraphicsMagick(default) or ImageMagick)])], [ |
1300 magick="$withval"], [ | |
1301 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
|
1302 |
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
|
1303 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
|
1304 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1305 MAGICK_CPPFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1306 MAGICK_LDFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1307 MAGICK_LIBS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1308 |
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
|
1309 PKG_CHECK_EXISTS([$magick++], [ |
11041 | 1310 ## 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
|
1311 ## packages adds extra flags that are useful when building |
11041 | 1312 ## Graphics/ImageMagick++ extentions. These extra flags break the |
1313 ## 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
|
1314 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
|
1315 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
|
1316 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
|
1317 |
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
|
1318 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
|
1319 |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1320 save_CPPFLAGS="$CPPFLAGS" |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1321 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
|
1322 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
|
1323 LIBS="$MAGICK_LDFLAGS $MAGICK_LIBS $LIBS" |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1324 AC_LANG_PUSH(C++) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1325 AC_CHECK_HEADER([Magick++.h], [ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1326 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
|
1327 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
|
1328 AC_MSG_RESULT(yes) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1329 warn_magick= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1330 ], [ |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1331 AC_MSG_RESULT(no) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1332 ]) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1333 ]) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1334 AC_LANG_POP(C++) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1335 CPPFLAGS="$save_CPPFLAGS" |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1336 LIBS="$save_LIBS" |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1337 ]) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1338 |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1339 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
|
1340 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
|
1341 else |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1342 MAGICK_CPPFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1343 MAGICK_LDFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1344 MAGICK_LIBS= |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
1345 fi |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1346 AC_SUBST(MAGICK_CPPFLAGS) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1347 AC_SUBST(MAGICK_LDFLAGS) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1348 AC_SUBST(MAGICK_LIBS) |
6043 | 1349 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1350 # --------------------------------------------------------------------- |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1351 |
10858
bf000a56a985
configure.ac: Change warning messages about freetype and fontconfig
Rik <octave@nomad.inbox5.com>
parents:
10845
diff
changeset
|
1352 ## 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
|
1353 |
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
|
1354 warn_freetype="" |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1355 native_graphics=true |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
1356 |
11208
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1357 check_opengl=false |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1358 AC_ARG_WITH([opengl], |
11214
7f19b2b6e093
Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents:
11209
diff
changeset
|
1359 [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
|
1360 [if test "x$withval" = xno; then |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1361 warn_opengl="--without-opengl specified. Native graphics will be disabled." |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1362 OCTAVE_CONFIGURE_WARNING([warn_opengl]) |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1363 native_graphics=false |
11208
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1364 else |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1365 check_opengl=true |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1366 fi], |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1367 [check_opengl=true]) |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1368 |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1369 if $check_opengl; then |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1370 OCTAVE_OPENGL |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1371 fi |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1372 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1373 GRAPHICS_LIBS= |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1374 GRAPHICS_CFLAGS= |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1375 |
11214
7f19b2b6e093
Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents:
11209
diff
changeset
|
1376 if test -z "$OPENGL_LIBS"; then |
7f19b2b6e093
Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents:
11209
diff
changeset
|
1377 if $check_opengl; then |
7f19b2b6e093
Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents:
11209
diff
changeset
|
1378 warn_fltk_opengl="OpenGL libs (GL and GLU) not found. Native graphics will be disabled." |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1379 OCTAVE_CONFIGURE_WARNING([warn_fltk_opengl]) |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1380 native_graphics=false |
11214
7f19b2b6e093
Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents:
11209
diff
changeset
|
1381 fi |
7f19b2b6e093
Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents:
11209
diff
changeset
|
1382 fi |
7f19b2b6e093
Remove redundant warning when 'without-opengl' option used.
Rik <octave@nomad.inbox5.com>
parents:
11209
diff
changeset
|
1383 |
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
|
1384 if test -n "$OPENGL_LIBS"; then |
7954 | 1385 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
|
1386 |
9845
722bd8f6a750
configure.ac: fix freetype check
John W. Eaton <jwe@octave.org>
parents:
9817
diff
changeset
|
1387 ## freetype 2 |
722bd8f6a750
configure.ac: fix freetype check
John W. Eaton <jwe@octave.org>
parents:
9817
diff
changeset
|
1388 |
722bd8f6a750
configure.ac: fix freetype check
John W. Eaton <jwe@octave.org>
parents:
9817
diff
changeset
|
1389 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
|
1390 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
|
1391 [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
|
1392 |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1393 if test -n "$warn_freetype"; then |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1394 OCTAVE_CONFIGURE_WARNING([warn_freetype]) |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1395 native_graphics=false |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1396 fi |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1397 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1398 ## fontconfig library |
9403
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
1399 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1400 warn_fontconfig="" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1401 if test -z "$warn_freetype"; then |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1402 PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [ |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1403 have_fontconfig=yes |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1404 OPENGL_LIBS="$FONTCONFIG_LIBS $OPENGL_LIBS" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1405 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FONTCONFIG_CFLAGS" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1406 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
|
1407 have_fontconfig=no |
10858
bf000a56a985
configure.ac: Change warning messages about freetype and fontconfig
Rik <octave@nomad.inbox5.com>
parents:
10845
diff
changeset
|
1408 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
|
1409 fi |
9403
4af6e29449c1
[mq]: graphics_text_engine
Michael Goffioul <michael.goffioul@gmail.com>
parents:
9259
diff
changeset
|
1410 |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1411 if test -n "$warn_fontconfig"; then |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1412 OCTAVE_CONFIGURE_WARNING([warn_fontconfig]) |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1413 native_graphics=false |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1414 fi |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1415 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1416 ## fltk (www.fltk.org) |
11041 | 1417 |
1418 AC_ARG_WITH([fltk-prefix], [ | |
1419 AS_HELP_STRING([--with-fltk-prefix=PFX], | |
1420 [Prefix where FLTK is installed (optional)])], [ | |
1421 fltk_prefix="$withval"], [ | |
1422 fltk_prefix=""]) | |
1423 | |
1424 AC_ARG_WITH([fltk-exec-prefix], [ | |
1425 AS_HELP_STRING([--with-fltk-exec-prefix=PFX], | |
1426 [Exec prefix where FLTK is installed (optional)])], [ | |
1427 fltk_exec_prefix="$withval"], [ | |
1428 fltk_exec_prefix=""]) | |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1429 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1430 if test -n "$fltk_exec_prefix"; then |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1431 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
|
1432 if test "x${FLTK_CONFIG+set}" != xset ; then |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1433 FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1434 fi |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1435 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1436 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1437 if test -n "$fltk_prefix"; then |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1438 fltk_args="$fltk_args --prefix=$fltk_prefix" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1439 if test x${FLTK_CONFIG+set} != xset ; then |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1440 FLTK_CONFIG="$fltk_prefix/bin/fltk-config" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1441 fi |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1442 fi |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1443 |
11041 | 1444 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
|
1445 |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1446 warn_fltk_config="" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1447 warn_fltk_opengl="" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1448 |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1449 if test "$FLTK_CONFIG" = "no" ; then |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1450 warn_fltk_config="FLTK config script not found. Native graphics will be disabled." |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1451 OCTAVE_CONFIGURE_WARNING([warn_fltk_config]) |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1452 native_graphics=false |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1453 else |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1454 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
|
1455 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
|
1456 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1457 case "$canonical_host_type" in |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1458 *-*-mingw*) |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1459 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
|
1460 ;; |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1461 esac |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1462 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1463 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
|
1464 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
|
1465 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
|
1466 AC_COMPILE_IFELSE( |
12743
5d8f2a091b23
maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents:
12742
diff
changeset
|
1467 [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
|
1468 [ |
47612d3e7077
use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
12336
diff
changeset
|
1469 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
|
1470 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
|
1471 ],[ |
47612d3e7077
use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
12336
diff
changeset
|
1472 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
|
1473 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
|
1474 ]) |
47612d3e7077
use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
12336
diff
changeset
|
1475 |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1476 if test -z "$warn_fltk_opengl"; then |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1477 GRAPHICS_CFLAGS="$FLTK_CFLAGS" |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1478 GRAPHICS_LIBS="$FLTK_LDFLAGS" |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1479 else |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1480 OCTAVE_CONFIGURE_WARNING([warn_fltk_opengl]) |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
1481 native_graphics=false |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1482 fi |
12450
47612d3e7077
use AC_COMPILE_IFELSE to check for OpenGL support in FLTK
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
12336
diff
changeset
|
1483 CFLAGS="$save_CFLAGS" |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1484 fi |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1485 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1486 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1487 AC_SUBST(GRAPHICS_CFLAGS) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1488 AC_SUBST(GRAPHICS_LIBS) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1489 |
3827 | 1490 # ---------------------------------------------------------------------- |
1491 | |
3130 | 1492 OCTAVE_PROG_AR |
3012 | 1493 |
9801
13868ea67c71
configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents:
9799
diff
changeset
|
1494 ifdef([LT_INIT], [], [ |
13868ea67c71
configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents:
9799
diff
changeset
|
1495 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
|
1496 ]) |
13868ea67c71
configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents:
9799
diff
changeset
|
1497 m4exit([1])]) |
13868ea67c71
configure.ac: fail if LT_INIT is not defined
John W. Eaton <jwe@octave.org>
parents:
9799
diff
changeset
|
1498 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1499 LT_PREREQ([2.2.2]) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1500 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
|
1501 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1502 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
|
1503 SHARED_LIBS=true |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1504 else |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1505 SHARED_LIBS=false |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1506 fi |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1507 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1508 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
|
1509 STATIC_LIBS=true |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1510 else |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1511 STATIC_LIBS=false |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1512 fi |
3012 | 1513 |
6137 | 1514 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
|
1515 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
|
1516 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
|
1517 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
|
1518 fi |
6137 | 1519 AC_SUBST(XTRA_CRUFT_SH_LDFLAGS) |
6102 | 1520 |
3820 | 1521 ### 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
|
1522 |
4906ccf5d95e
use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
Jaroslav Hajek <highegg@gmail.com>
parents:
10622
diff
changeset
|
1523 ## 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
|
1524 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
|
1525 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
|
1526 |
10951 | 1527 AX_BLAS_WITH_F77_FUNC([:], [:]) |
1528 AX_LAPACK([:], [:]) | |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1529 |
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
|
1530 ## 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
|
1531 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
|
1532 |
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
|
1533 ## 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
|
1534 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
|
1535 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
|
1536 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
|
1537 |
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
|
1538 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
|
1539 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
|
1540 |
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
|
1541 ## 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
|
1542 |
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
|
1543 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
|
1544 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
|
1545 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
|
1546 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
|
1547 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
|
1548 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
|
1549 |
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
|
1550 ## 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
|
1551 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
|
1552 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
|
1553 *-*-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
|
1554 ## 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
|
1555 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
|
1556 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
|
1557 AC_LANG_PUSH(C) |
12743
5d8f2a091b23
maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents:
12742
diff
changeset
|
1558 AC_COMPILE_IFELSE([AC_LANG_SOURCE([ |
5d8f2a091b23
maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents:
12742
diff
changeset
|
1559 #include "libcruft/misc/blaswrap.c" |
5d8f2a091b23
maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents:
12742
diff
changeset
|
1560 ])], |
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
|
1561 [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
|
1562 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
|
1563 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
|
1564 |
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
|
1565 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
|
1566 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
|
1567 |
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
|
1568 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
|
1569 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
|
1570 |
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
|
1571 ## 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
|
1572 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
|
1573 |
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
|
1574 ## 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
|
1575 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
|
1576 [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
|
1577 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
|
1578 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
|
1579 |
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
|
1580 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
|
1581 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
|
1582 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
|
1583 ## 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
|
1584 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
|
1585 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
|
1586 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
|
1587 ;; |
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
|
1588 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
|
1589 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
|
1590 |
10951 | 1591 if test "x$ax_blas_f77_func_ok" = "xno"; then |
1592 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
|
1593 ## 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
|
1594 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
|
1595 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
|
1596 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
|
1597 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
|
1598 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
|
1599 |
10951 | 1600 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
|
1601 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
|
1602 fi |
3690 | 1603 |
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
|
1604 ### 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
|
1605 ## 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
|
1606 ## Must supply proper LIBS, however. |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
1607 |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
1608 save_LIBS="$LIBS" |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1609 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
|
1610 OCTAVE_CHECK_LIBRARY(qrupdate, qrupdate, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
1611 [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
|
1612 [], |
9707
6f5c4c82c5fc
avoid ugly F77 names in configure
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
1613 [sqr1up], |
6f5c4c82c5fc
avoid ugly F77 names in configure
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
1614 [Fortran 77], [don't use qrupdate, disable QR & Cholesky updating functions]) |
9708 | 1615 |
1616 if test "$octave_qrupdate_ok" = yes; then | |
1617 LIBS="$LIBS $QRUPDATE_LIBS" | |
1618 AC_LANG_PUSH([Fortran 77]) | |
1619 AC_MSG_CHECKING([for slup1up in $QRUPDATE_LIBS]) | |
1620 octave_qrupdate_luu=no | |
1621 AC_LINK_IFELSE([AC_LANG_CALL([], [slup1up])], | |
1622 [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
|
1623 AC_MSG_RESULT([$octave_qrupdate_luu]) |
9708 | 1624 if test "$octave_qrupdate_luu" = yes; then |
1625 AC_DEFINE(HAVE_QRUPDATE_LUU, [1], [Define if qrupdate supports LU updates]) | |
1626 fi | |
1627 AC_LANG_POP([Fortran 77]) | |
1628 fi | |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
1629 LIBS="$save_LIBS" |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
1630 |
5451 | 1631 # Check for AMD library |
7619 | 1632 |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1633 OCTAVE_CHECK_LIBRARY(amd, AMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
1634 [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
|
1635 [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
|
1636 [amd_postorder], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
1637 [], [don't use AMD library, disable some sparse matrix functionality]) |
5451 | 1638 |
6024 | 1639 # Check for CAMD library |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1640 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1641 OCTAVE_CHECK_LIBRARY(camd, CAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
1642 [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
|
1643 [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
|
1644 [camd_postorder], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
1645 [], [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
|
1646 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1647 # Check for COLAMD library |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1648 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1649 OCTAVE_CHECK_LIBRARY(colamd, COLAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
1650 [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
|
1651 [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
|
1652 [colamd], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
1653 [], [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
|
1654 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1655 # Check for CCOLAMD library |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1656 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1657 OCTAVE_CHECK_LIBRARY(ccolamd, CCOLAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
1658 [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
|
1659 [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
|
1660 [ccolamd], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
1661 [], [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
|
1662 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1663 # 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
|
1664 # 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
|
1665 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1666 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
|
1667 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
|
1668 OCTAVE_CHECK_LIBRARY(cholmod, CHOLMOD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
1669 [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
|
1670 [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
|
1671 [cholmod_start], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
1672 [], [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
|
1673 LIBS="$save_LIBS" |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1674 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1675 # Check for CXSparse library |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1676 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1677 OCTAVE_CHECK_LIBRARY(cxsparse, CXSparse, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
1678 [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
|
1679 [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
|
1680 [cs_di_sqr], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
1681 [C++], [don't use CXSparse library, disable some sparse matrix functionality]) |
6024 | 1682 |
5226 | 1683 # Check for UMFPACK library. |
1684 | |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1685 save_LIBS="$LIBS" |
9787
cc5bb7b5679f
use AMD_CPPFLAGS when checking for UMFPACK
David Grundberg <davidg@cs.umu.se>
parents:
9763
diff
changeset
|
1686 save_CPPFLAGS="$CPPFLAGS" |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1687 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
|
1688 CPPFLAGS="$AMD_CPPFLAGS $CPPFLAGS" |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1689 OCTAVE_CHECK_LIBRARY(umfpack, UMFPACK, |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1690 [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
|
1691 [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
|
1692 [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
|
1693 [], [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
|
1694 CPPFLAGS="$save_CPPFLAGS" |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1695 LIBS="$save_LIBS" |
5512 | 1696 |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1697 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
|
1698 ## 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
|
1699 $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
|
1700 save_LIBS="$LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1701 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
|
1702 OCTAVE_CHECK_LIBRARY(umfpack, UMFPACK, |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1703 [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
|
1704 [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
|
1705 [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
|
1706 [], [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
|
1707 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
|
1708 UMFPACK_LIBS="$UMFPACK_LIBS -lcblas" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1709 fi |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1710 LIBS="$save_LIBS" |
6133 | 1711 fi |
5513 | 1712 |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1713 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
|
1714 save_LIBS="$LIBS"; |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1715 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
|
1716 OCTAVE_UMFPACK_SEPERATE_SPLIT |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1717 LIBS="$save_LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
1718 fi |
5226 | 1719 |
14144
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1720 save_LIBS="$LIBS" |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1721 LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS" |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1722 OCTAVE_CHECK_LIBRARY(arpack, ARPACK, |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1723 [ARPACK not found. The eigs function will be disabled.], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1724 [], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1725 [dseupd], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1726 [Fortran 77], [don't use the ARPACK library, disable eigs function], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1727 [warn_arpack= |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1728 OCTAVE_CHECK_ARPACK_OK([ |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1729 AC_DEFINE(HAVE_ARPACK, 1, [Define if ARPACK is available.])], [ |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1730 warn_arpack="ARPACK library found, but seems not to work properly -- disabling eigs function"])]) |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1731 LIBS="$save_LIBS" |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
1732 |
4128 | 1733 ### Enable dynamic linking. --enable-shared implies this, so |
1734 ### --enable-dl is only need if you are only building static libraries | |
1735 ### and want to try dynamic linking too (works on some systems, for | |
1736 ### example, OS X and Windows). | |
1737 | |
11216
5036b0ff9597
configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents:
11214
diff
changeset
|
1738 AC_ARG_ENABLE([dl], |
5036b0ff9597
configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents:
11214
diff
changeset
|
1739 [AS_HELP_STRING([--enable-dl], |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
1740 [allow loading of dynamically linked modules (not all systems)])], [ |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1741 case "${enableval}" in |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1742 yes) ENABLE_DYNAMIC_LINKING=true ;; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1743 no) ENABLE_DYNAMIC_LINKING=false ;; |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1744 *) 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
|
1745 esac], [ENABLE_DYNAMIC_LINKING=true]) |
4128 | 1746 |
3034 | 1747 if $STATIC_LIBS || $SHARED_LIBS; then |
1748 true | |
1749 else | |
1750 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) | |
1751 fi | |
1752 | |
2813 | 1753 CPICFLAG=-fPIC |
1754 CXXPICFLAG=-fPIC | |
1755 FPICFLAG=-fPIC | |
1756 SHLEXT=so | |
4190 | 1757 SHLLIB='$(SHLEXT)' |
4102 | 1758 SHLBIN= |
4138 | 1759 SHLEXT_VER='$(SHLEXT).$(version)' |
1760 SHLLIB_VER='$(SHLLIB).$(version)' | |
1761 SHLBIN_VER='$(SHLBIN).$(version)' | |
4126 | 1762 SHLLINKEXT= |
6051 | 1763 LIBPRE=lib |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1764 SHLPRE=lib |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
1765 SHLLIBPRE=lib |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1766 SHLBINPRE=lib |
4323 | 1767 SH_LD='$(CXX)' |
2813 | 1768 SH_LDFLAGS=-shared |
4759 | 1769 DL_LD='$(SH_LD)' |
1770 DL_LDFLAGS='$(SH_LDFLAGS)' | |
1771 MKOCTFILE_DL_LDFLAGS='$(DL_LDFLAGS)' | |
3036 | 1772 SONAME_FLAGS= |
4199 | 1773 NO_OCT_FILE_STRIP=false |
4323 | 1774 TEMPLATE_AR='$(AR)' |
3775 | 1775 TEMPLATE_ARFLAGS="$ARFLAGS" |
6137 | 1776 CRUFT_DLL_DEFS= |
1777 OCTAVE_DLL_DEFS= | |
1778 OCTINTERP_DLL_DEFS= | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1779 OCTGRAPHICS_DLL_DEFS= |
4104 | 1780 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
|
1781 ldpreloadsep=" " |
10986
20bb05b9fb3f
makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents:
10951
diff
changeset
|
1782 BUILD_COMPILED_AUX_PROGRAMS=false |
2813 | 1783 case "$canonical_host_type" in |
6668 | 1784 *-*-386bsd* | *-*-netbsd*) |
2813 | 1785 SH_LD=ld |
1786 SH_LDFLAGS=-Bshareable | |
1787 ;; | |
6668 | 1788 *-*-openbsd*) |
1789 SH_LDFLAGS='-shared -fPIC' | |
1790 ;; | |
4323 | 1791 *-*-freebsd*) |
5508 | 1792 SH_LDFLAGS="-shared -Wl,-x" |
4323 | 1793 ;; |
3127 | 1794 alpha*-dec-osf*) |
2813 | 1795 CPICFLAG= |
1796 CXXPICFLAG= | |
1797 FPICFLAG= | |
4283 | 1798 SH_LDFLAGS="-shared -Wl,-expect_unresolved -Wl,'*'" |
2813 | 1799 ;; |
3956 | 1800 *-*-darwin*) |
10004
e517da95bf98
Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents:
10003
diff
changeset
|
1801 DL_LDFLAGS='-bundle -bundle_loader $(top_builddir)/src/octave $(LDFLAGS)' |
6682 | 1802 MKOCTFILE_DL_LDFLAGS='-bundle -bundle_loader $$BINDIR/octave-$$OCTAVE_VERSION$$EXEEXT' |
4759 | 1803 SH_LDFLAGS='-dynamiclib -single_module $(LDFLAGS)' |
7266 | 1804 case "$canonical_host_type" in |
1805 powerpc-*) | |
1806 CXXPICFLAG= | |
1807 CPICFLAG= | |
1808 FPICFLAG= | |
1809 ;; | |
1810 esac | |
4759 | 1811 SHLEXT=dylib |
1812 SHLLIB='$(SHLEXT)' | |
1813 SHLEXT_VER='$(version).$(SHLEXT)' | |
1814 SHLLIB_VER='$(version).$(SHLLIB)' | |
4199 | 1815 NO_OCT_FILE_STRIP=true |
4786 | 1816 SONAME_FLAGS='-install_name $(octlibdir)/$@' |
12451 | 1817 library_path_var=DYLD_LIBRARY_PATH |
3956 | 1818 ;; |
8675
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1819 *-*-cygwin*) |
9054
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1820 CPICFLAG= |
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1821 CXXPICFLAG= |
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1822 FPICFLAG= |
0735e427c6c0
configure fixes for cygwin
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9049
diff
changeset
|
1823 LIBPRE=lib |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1824 SHLPRE=cyg |
9241
60bbc66bb0e2
Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9231
diff
changeset
|
1825 SHLBINPRE=cyg |
8644
fac8c78b4fb9
configure.in: fix shared library definitions for Cygwin and MinGW
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
8641
diff
changeset
|
1826 SHLEXT=dll |
fac8c78b4fb9
configure.in: fix shared library definitions for Cygwin and MinGW
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
8641
diff
changeset
|
1827 SHLLIB=dll.a |
9241
60bbc66bb0e2
Correct my previous mistake for cygwin SHLBIN and SHLBINPRE
Marco Atzeri <marco_atzeri@yahoo.it>
parents:
9231
diff
changeset
|
1828 SHLBIN=dll |
5451 | 1829 DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" |
5414 | 1830 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
|
1831 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
|
1832 ldpreloadsep=":" |
4102 | 1833 ;; |
8675
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1834 *-*-mingw*) |
10986
20bb05b9fb3f
makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents:
10951
diff
changeset
|
1835 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
|
1836 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
|
1837 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
|
1838 CPICFLAG= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1839 CXXPICFLAG= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1840 FPICFLAG= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1841 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
|
1842 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
|
1843 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
|
1844 LIBPRE= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1845 SHLPRE= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1846 SHLLIBPRE= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1847 SHLBINPRE= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1848 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
|
1849 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
|
1850 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
|
1851 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
|
1852 fi |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1853 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
|
1854 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
|
1855 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
|
1856 ## 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
|
1857 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
|
1858 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
|
1859 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
|
1860 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
|
1861 else |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1862 CPICFLAG= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1863 CXXPICFLAG= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1864 FPICFLAG= |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1865 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
|
1866 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
|
1867 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
|
1868 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
|
1869 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
|
1870 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
|
1871 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
|
1872 fi |
8675
43c6012bd4c2
configure.in: separate cases for cygwin and mingw
Benjamin Lindner <lindnerben@gmx.net>
parents:
8659
diff
changeset
|
1873 ;; |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1874 |
6089 | 1875 *-*-msdosmsvc) |
10986
20bb05b9fb3f
makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents:
10951
diff
changeset
|
1876 BUILD_COMPILED_AUX_PROGRAMS=true |
6794 | 1877 DL_LDFLAGS="-shared" |
6051 | 1878 CPICFLAG= |
1879 CXXPICFLAG= | |
1880 FPICFLAG= | |
1881 SHLEXT=dll | |
1882 SHLLIB=lib | |
1883 SHLBIN=dll | |
1884 LIBPRE= | |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
1885 SHLPRE= |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
1886 SHLLIBPRE= |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
1887 SHLBINPRE= |
6794 | 1888 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
|
1889 if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then |
6794 | 1890 DL_LDFLAGS="$DL_LDFLAGS -g" |
1891 SH_LDFLAGS="$SH_LDFLAGS -g" | |
1892 fi | |
6255 | 1893 NO_OCT_FILE_STRIP=true |
6100 | 1894 library_path_var=PATH |
6718 | 1895 NO_OCT_FILE_STRIP=true |
6087 | 1896 ## Extra compilation flags. |
6137 | 1897 CRUFT_DLL_DEFS="-DCRUFT_DLL" |
1898 OCTAVE_DLL_DEFS="-DOCTAVE_DLL" | |
1899 OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL" | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1900 OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL" |
6051 | 1901 ;; |
3740 | 1902 *-*-linux* | *-*-gnu*) |
4906 | 1903 MKOCTFILE_DL_LDFLAGS="-shared -Wl,-Bsymbolic" |
4283 | 1904 SONAME_FLAGS='-Wl,-soname -Wl,$@' |
2813 | 1905 ;; |
3887 | 1906 i[[3456]]86-*-sco3.2v5*) |
4283 | 1907 SONAME_FLAGS='-Wl,-h -Wl,$@' |
3160 | 1908 SH_LDFLAGS=-G |
1909 ;; | |
2813 | 1910 rs6000-ibm-aix* | powerpc-ibm-aix*) |
1911 CPICFLAG= | |
1912 CXXPICFLAG= | |
1913 FPICFLAG= | |
9172
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1914 library_path_var=LIBPATH |
2813 | 1915 ;; |
1916 hppa*-hp-hpux*) | |
3887 | 1917 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1918 FPICFLAG=-fPIC |
1919 else | |
1920 FPICFLAG=+Z | |
1921 fi | |
1922 SHLEXT=sl | |
1923 SH_LDFLAGS="-shared -fPIC" | |
9172
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1924 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
|
1925 ;; |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1926 ia64*-hp-hpux*) |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1927 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
|
1928 FPICFLAG=-fPIC |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1929 else |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1930 FPICFLAG=+Z |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1931 fi |
cd68431b395a
configure.in: shared library fixes for AIX and HPUX
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9171
diff
changeset
|
1932 SH_LDFLAGS="-shared -fPIC" |
2813 | 1933 ;; |
1934 *-sgi-*) | |
1935 CPICFLAG= | |
1936 CXXPICFLAG= | |
1937 FPICFLAG= | |
1938 ;; | |
1939 sparc-sun-sunos4*) | |
3887 | 1940 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1941 FPICFLAG=-fPIC |
1942 else | |
1943 FPICFLAG=-PIC | |
1944 fi | |
3059 | 1945 SH_LD=ld |
1946 SH_LDFLAGS="-assert nodefinitions" | |
2813 | 1947 ;; |
3606 | 1948 sparc-sun-solaris2* | i386-pc-solaris2*) |
3887 | 1949 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1950 FPICFLAG=-fPIC |
1951 else | |
3775 | 1952 FPICFLAG=-KPIC |
1953 fi | |
1954 if test "$GCC" = yes; then | |
1955 CPICFLAG=-fPIC | |
1956 else | |
1957 CPICFLAG=-KPIC | |
2813 | 1958 fi |
3775 | 1959 if test "$GXX" = yes; then |
1960 CXXPICFLAG=-fPIC | |
1961 SH_LDFLAGS=-shared | |
1962 else | |
1963 CXXPICFLAG=-KPIC | |
1964 SH_LDFLAGS=-G | |
1965 fi | |
6087 | 1966 ## Template closures in archive libraries need a different mechanism. |
3820 | 1967 if test "$GXX" = yes; then |
3775 | 1968 true |
1969 else | |
4323 | 1970 TEMPLATE_AR='$(CXX)' |
3775 | 1971 TEMPLATE_ARFLAGS="-xar -o" |
1972 fi | |
2813 | 1973 ;; |
1974 esac | |
1975 | |
10986
20bb05b9fb3f
makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents:
10951
diff
changeset
|
1976 AM_CONDITIONAL([AMCOND_BUILD_COMPILED_AUX_PROGRAMS], |
20bb05b9fb3f
makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents:
10951
diff
changeset
|
1977 [test x$BUILD_COMPILED_AUX_PROGRAMS = xtrue]) |
20bb05b9fb3f
makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents:
10951
diff
changeset
|
1978 |
5844 | 1979 AC_MSG_NOTICE([defining FPICFLAG to be $FPICFLAG]) |
1980 AC_MSG_NOTICE([defining CPICFLAG to be $CPICFLAG]) | |
1981 AC_MSG_NOTICE([defining CXXPICFLAG to be $CXXPICFLAG]) | |
1982 AC_MSG_NOTICE([defining SHLEXT to be $SHLEXT]) | |
1983 AC_MSG_NOTICE([defining SHLLIB to be $SHLLIB]) | |
1984 AC_MSG_NOTICE([defining SHLBIN to be $SHLBIN]) | |
1985 AC_MSG_NOTICE([defining SHLEXT_VER to be $SHLEXT_VER]) | |
1986 AC_MSG_NOTICE([defining SHLLIB_VER to be $SHLLIB_VER]) | |
1987 AC_MSG_NOTICE([defining SHLBIN_VER to be $SHLBIN_VER]) | |
1988 AC_MSG_NOTICE([defining SHLLINKEXT to be $SHLLINKEXT]) | |
6051 | 1989 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
|
1990 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
|
1991 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
|
1992 AC_MSG_NOTICE([defining SHLBINPRE to be $SHLBINPRE]) |
5844 | 1993 AC_MSG_NOTICE([defining SH_LD to be $SH_LD]) |
1994 AC_MSG_NOTICE([defining SH_LDFLAGS to be $SH_LDFLAGS]) | |
1995 AC_MSG_NOTICE([defining DL_LD to be $DL_LD]) | |
1996 AC_MSG_NOTICE([defining DL_LDFLAGS to be $DL_LDFLAGS]) | |
1997 AC_MSG_NOTICE([defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS]) | |
1998 AC_MSG_NOTICE([defining SONAME_FLAGS to be $SONAME_FLAGS]) | |
1999 AC_MSG_NOTICE([defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP]) | |
2000 AC_MSG_NOTICE([defining TEMPLATE_AR to be $TEMPLATE_AR]) | |
2001 AC_MSG_NOTICE([defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS]) | |
6137 | 2002 AC_MSG_NOTICE([defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS]) |
2003 AC_MSG_NOTICE([defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS]) | |
2004 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
|
2005 AC_MSG_NOTICE([defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS]) |
5844 | 2006 AC_MSG_NOTICE([defining library_path_var to be $library_path_var]) |
2813 | 2007 AC_SUBST(FPICFLAG) |
2008 AC_SUBST(CPICFLAG) | |
2009 AC_SUBST(CXXPICFLAG) | |
2010 AC_SUBST(SHLEXT) | |
4102 | 2011 AC_SUBST(SHLLIB) |
2012 AC_SUBST(SHLBIN) | |
4126 | 2013 AC_SUBST(SHLEXT_VER) |
2014 AC_SUBST(SHLLIB_VER) | |
2015 AC_SUBST(SHLBIN_VER) | |
2016 AC_SUBST(SHLLINKEXT) | |
6051 | 2017 AC_SUBST(LIBPRE) |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9178
diff
changeset
|
2018 AC_SUBST(SHLPRE) |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
2019 AC_SUBST(SHLLIBPRE) |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8607
diff
changeset
|
2020 AC_SUBST(SHLBINPRE) |
2813 | 2021 AC_SUBST(SH_LD) |
2022 AC_SUBST(SH_LDFLAGS) | |
4759 | 2023 AC_SUBST(DL_LD) |
2024 AC_SUBST(DL_LDFLAGS) | |
2025 AC_SUBST(MKOCTFILE_DL_LDFLAGS) | |
3036 | 2026 AC_SUBST(SONAME_FLAGS) |
4199 | 2027 AC_SUBST(NO_OCT_FILE_STRIP) |
3775 | 2028 AC_SUBST(TEMPLATE_AR) |
2029 AC_SUBST(TEMPLATE_ARFLAGS) | |
6141 | 2030 AC_SUBST(CRUFT_DLL_DEFS) |
2031 AC_SUBST(OCTAVE_DLL_DEFS) | |
2032 AC_SUBST(OCTINTERP_DLL_DEFS) | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
2033 AC_SUBST(OCTGRAPHICS_DLL_DEFS) |
4104 | 2034 AC_SUBST(library_path_var) |
9613
16907d1153d1
attempt to fix LD_PRELOAD for Cygwin
John W. Eaton <jwe@octave.org>
parents:
9610
diff
changeset
|
2035 AC_SUBST(ldpreloadsep) |
4102 | 2036 |
2813 | 2037 ### special checks for odd OS specific things. |
2038 | |
3887 | 2039 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
2813 | 2040 |
4388 | 2041 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
|
2042 *-*-mingw*) |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
2043 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
|
2044 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
|
2045 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
|
2046 else |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
2047 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
|
2048 fi |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2049 LIBS="$LIBS -lgdi32 -lws2_32 -luser32 -lkernel32" |
6091 | 2050 ;; |
10123
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
2051 *-*-msdosmsvc*) |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
2052 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
|
2053 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
|
2054 ;; |
4388 | 2055 esac |
13024
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2056 |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2057 AC_ARG_ENABLE([no-undefined], |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2058 [AS_HELP_STRING([--enable-no-undefined], |
14059
6c72c3bda888
doc: Fix typo in --enable-no-undefined help string
Rik <octave@nomad.inbox5.com>
parents:
14043
diff
changeset
|
2059 [pass -no-undefined to libtool when linking Octave and its shared libraries (on by default)])], |
13024
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2060 [case "${enableval}" in |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2061 yes) NO_UNDEFINED_LDFLAG="-no-undefined" ;; |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2062 no) NO_UNDEFINED_LDFLAG="" ;; |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2063 *) AC_MSG_ERROR([bad value ${enableval} for --enable-link-all-depenencies]) ;; |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2064 esac], [NO_UNDEFINED_LDFLAG="-no-undefined"]) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2065 AC_SUBST(NO_UNDEFINED_LDFLAG) |
4388 | 2066 |
13024
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2067 AC_ARG_ENABLE([link-all-dependencies], |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2068 [AS_HELP_STRING([--enable-link-all-dependencies], |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2069 [link Octave and its shared libraries with all dependencies, not just those immediately referenced (should not be needed on most systems)])], |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2070 [case "${enableval}" in |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2071 yes) link_all_deps=true ;; |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2072 no) link_all_deps=false ;; |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2073 *) AC_MSG_ERROR([bad value ${enableval} for --enable-link-all-depenencies]) ;; |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2074 esac], [link_all_deps=false]) |
f3c53fea9fb5
maint: more linking tweaks
John W. Eaton <jwe@octave.org>
parents:
13016
diff
changeset
|
2075 AM_CONDITIONAL([AMCOND_LINK_ALL_DEPS], [test x$link_all_deps = xtrue]) |
4388 | 2076 |
4353 | 2077 ### Type stuff. |
2078 | |
2079 AC_TYPE_MODE_T | |
2080 AC_TYPE_OFF_T | |
2081 AC_TYPE_PID_T | |
2082 AC_TYPE_SIZE_T | |
2083 AC_TYPE_UID_T | |
10077 | 2084 AC_CHECK_TYPES([dev_t, ino_t]) |
4353 | 2085 AC_CHECK_TYPES([long long int, unsigned long long int]) |
2086 | |
2813 | 2087 ### How big are ints and how are they oriented? These could probably |
2088 ### be eliminated in favor of run-time checks. | |
2089 | |
3888 | 2090 AC_CHECK_SIZEOF(short) |
2091 AC_CHECK_SIZEOF(int) | |
2092 AC_CHECK_SIZEOF(long) | |
2093 AC_CHECK_SIZEOF(long long) | |
2813 | 2094 |
2095 ### Does the C compiler handle alloca() and const correctly? | |
2096 | |
4602 | 2097 AC_FUNC_ALLOCA |
2813 | 2098 |
4360 | 2099 ### See if we should use placement delete. |
2100 | |
2101 OCTAVE_PLACEMENT_DELETE | |
2102 | |
4366 | 2103 ### See if we can auto allocate variable sized arrays. |
2104 | |
2105 OCTAVE_DYNAMIC_AUTO_ARRAYS | |
2106 | |
8169
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
2107 ### See if we can use fast integer arithmetics |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
2108 |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
2109 OCTAVE_FAST_INT_OPS |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
2110 |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2111 ### Check for long double type (for 64-bit integers) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2112 |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2113 AC_CHECK_SIZEOF(long double) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2114 |
869 | 2115 ### Checks for header files. |
2116 | |
832 | 2117 AC_HEADER_DIRENT |
1377 | 2118 AC_HEADER_SYS_WAIT |
2097 | 2119 |
4051 | 2120 ### C headers |
2121 | |
11234
2718e1fdf82f
IEEE math initialization tweaks
John W. Eaton <jwe@octave.org>
parents:
11233
diff
changeset
|
2122 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
|
2123 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
|
2124 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
|
2125 sys/select.h sys/utsname.h termcap.h) |
3887 | 2126 |
4051 | 2127 ### C++ headers |
2128 | |
2129 AC_LANG_PUSH(C++) | |
2130 AC_CHECK_HEADERS(sstream) | |
13727
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2131 AC_CHECK_HEADERS([unordered_map], [], [ |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2132 AC_CHECK_HEADERS([tr1/unordered_map])]) |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2133 AC_MSG_CHECKING([whether unordered_map requires tr1 namespace]) |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2134 unordered_map_requires_tr1_namespace=no |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2135 if test "$ac_cv_header_unordered_map" = "yes"; then |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2136 ### Have <unordered_map>, but still have to check whether |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2137 ### tr1 namespace is required (like MSVC, for instance). |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2138 AC_COMPILE_IFELSE([ |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2139 AC_LANG_PROGRAM([ |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2140 #include <unordered_map> |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2141 ], [ |
14561
26b2983a8acd
maint: fix unordered_map configure test
John W. Eaton <jwe@octave.org>
parents:
14550
diff
changeset
|
2142 std::unordered_map<int,int> m; |
13727
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2143 ])], [], [unordered_map_requires_tr1_namespace=yes]) |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2144 elif test "$ac_cv_header_tr1_unordered_map" = "yes"; then |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2145 unordered_map_requires_tr1_namespace=yes |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2146 fi |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2147 if test "$unordered_map_requires_tr1_namespace" = "yes"; then |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2148 AC_DEFINE(USE_UNORDERED_MAP_WITH_TR1, 1, [Defines whether unordered_map requires the use of tr1 namespace.]) |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2149 fi |
478efc95cb7a
Test unordered_map header location and namespace.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13268
diff
changeset
|
2150 AC_MSG_RESULT([$unordered_map_requires_tr1_namespace]) |
4051 | 2151 AC_LANG_POP(C++) |
2152 | |
3887 | 2153 have_termios_h=no |
9259
75c502937d2c
Fix typo for termios.h
Thomas Weber <thomas.weber.mail at gmail.com>
parents:
9254
diff
changeset
|
2154 AC_CHECK_HEADERS(termios.h, have_termios_h=yes) |
3887 | 2155 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) |
2156 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) | |
5451 | 2157 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) |
4067 | 2158 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) |
3249 | 2159 |
3887 | 2160 if test "$have_termios_h" = yes \ |
2161 || test "$have_termio_h" = yes \ | |
2162 || test "$have_sgtty_h" = yes; then | |
832 | 2163 true |
2164 else | |
4064 | 2165 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) |
832 | 2166 fi |
869 | 2167 |
1788 | 2168 ### Checks for functions and variables. |
869 | 2169 |
10244 | 2170 AC_CHECK_FUNCS(basename canonicalize_file_name \ |
10259 | 2171 chmod dup2 endgrent endpwent execvp expm1 expm1f fork \ |
7638
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
2172 getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \ |
14340
de99dde50ee1
undo part of changeset f15007a6c642
John W. Eaton <jwe@octave.org>
parents:
14315
diff
changeset
|
2173 getppid getpwent getpwuid getuid getwd _kbhit kill \ |
10179 | 2174 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
|
2175 mkstemp pipe putenv \ |
10179 | 2176 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
|
2177 setpwent setvbuf siglongjmp \ |
11209
94d9d412a2a0
improve Matlab compatibility of rem and mod
John W. Eaton <jwe@octave.org>
parents:
11208
diff
changeset
|
2178 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
|
2179 uname utime waitpid \ |
cd550069240e
assume vsnprintf from gnulib; use sstream instead of snprintf
John W. Eaton <jwe@octave.org>
parents:
10256
diff
changeset
|
2180 _chmod x_utime _utime32) |
1300 | 2181 |
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
|
2182 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
|
2183 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
|
2184 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
|
2185 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
|
2186 #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
|
2187 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
|
2188 #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
|
2189 #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
|
2190 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
|
2191 #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
|
2192 #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
|
2193 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
|
2194 #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
|
2195 #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
|
2196 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
|
2197 #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
|
2198 #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
|
2199 } |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
2200 #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
|
2201 ]) |
7500cfff4728
configure.in: provide decls for exp2, round, and tgamma if they are missing
Peter O'Gorman <pogma@thewrittenword.com>
parents:
9091
diff
changeset
|
2202 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
|
2203 |
6094 | 2204 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
|
2205 *-*-mingw*) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2206 ## 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
|
2207 ## 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
|
2208 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
|
2209 save_LIBS="$LIBS" |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2210 LIBS="-liberty $LIBS" |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2211 AC_LINK_IFELSE([ |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2212 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
|
2213 [[mkstemps ("XXXXXX", 0);]] |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2214 )], |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2215 [AC_MSG_RESULT(yes) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2216 HAVE_MKSTEMPS=yes |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2217 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
|
2218 ], |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2219 [AC_MSG_RESULT(no) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2220 HAVE_MKSTEMPS=no |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2221 LIBS="$save_LIBS" |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2222 ]) |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2223 ;; |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2224 esac |
bbb3fa6778f3
use mkstemps as replacement for mkstemp on mingw32
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8771
diff
changeset
|
2225 |
1708 | 2226 OCTAVE_SMART_PUTENV |
2227 | |
6103 | 2228 case "$canonical_host_type" in |
6704 | 2229 *-*-msdosmsvc | *-*-mingw*) |
6103 | 2230 AC_MSG_CHECKING([for required _WIN32_WINNT]) |
12743
5d8f2a091b23
maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents:
12742
diff
changeset
|
2231 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
6103 | 2232 #include <windows.h> |
2233 #if _WIN32_WINNT < 0x0403 | |
2234 #error "Wrong version" | |
12743
5d8f2a091b23
maint: avoid warnings from autoconf
John W. Eaton <jwe@octave.org>
parents:
12742
diff
changeset
|
2235 #endif]], [])], |
6103 | 2236 AC_MSG_RESULT([none]), [ |
12451 | 2237 AC_DEFINE(_WIN32_WINNT, 0x0403, [Define to 0x0403 to access InitializeCriticalSectionAndSpinCount]) |
2238 AC_MSG_RESULT([0x0403])]) | |
6103 | 2239 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
|
2240 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
|
2241 [[int x = M_LN2;]])], |
6103 | 2242 AC_MSG_RESULT([no]), [ |
12451 | 2243 AC_DEFINE(_USE_MATH_DEFINES, 1, [Define if your system needs it to define math constants like M_LN2]) |
2244 AC_MSG_RESULT([yes])]) | |
6103 | 2245 ;; |
2246 esac | |
2247 | |
4110 | 2248 ### Dynamic linking is now enabled only if we are building shared |
2249 ### libs and some API for dynamic linking is detected. | |
2250 | |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2251 ## 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
|
2252 ## 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
|
2253 |
3705 | 2254 LD_CXX='$(CXX)' |
3232 | 2255 RDYNAMIC_FLAG= |
4110 | 2256 DL_API_MSG="" |
2257 dlopen_api=false | |
2258 shl_load_api=false | |
2259 loadlibrary_api=false | |
4163 | 2260 dyld_api=false |
4110 | 2261 |
4163 | 2262 if $SHARED_LIBS || $ENABLE_DYNAMIC_LINKING; then |
2263 | |
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
|
2264 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
|
2265 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
|
2266 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
|
2267 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
|
2268 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
|
2269 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
|
2270 ;; |
0cabc95f0833
configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents:
10029
diff
changeset
|
2271 shl_load) |
4189 | 2272 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
|
2273 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
|
2274 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
|
2275 ;; |
0cabc95f0833
configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents:
10029
diff
changeset
|
2276 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
|
2277 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
|
2278 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
|
2279 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
|
2280 ;; |
0cabc95f0833
configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents:
10029
diff
changeset
|
2281 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
|
2282 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
|
2283 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
|
2284 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
|
2285 ;; |
0cabc95f0833
configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents:
10029
diff
changeset
|
2286 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
|
2287 |
0cabc95f0833
configure.ac: use libtool cache variables to simplify checks for dynamic linking api
John W. Eaton <jwe@octave.org>
parents:
10029
diff
changeset
|
2288 DL_LIBS="$lt_cv_dlopen_libs" |
9515 | 2289 AC_SUBST(DL_LIBS) |
4110 | 2290 |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2291 ## Disable dynamic linking if capability is not present. |
4163 | 2292 if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2293 true |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2294 else |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2295 ENABLE_DYNAMIC_LINKING=false |
1978 | 2296 fi |
4163 | 2297 fi |
2298 | |
13010
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2299 if $ENABLE_DYNAMIC_LINKING; then |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2300 AC_DEFINE(ENABLE_DYNAMIC_LINKING, 1, [Define if using dynamic linking]) |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2301 fi |
edc5ec6e949b
maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents:
12772
diff
changeset
|
2302 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2303 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
|
2304 [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
|
2305 |
4163 | 2306 if $SHARED_LIBS; then |
2307 LIBOCTINTERP=-loctinterp$SHLLINKEXT | |
2308 LIBOCTAVE=-loctave$SHLLINKEXT | |
2309 LIBCRUFT=-lcruft$SHLLINKEXT | |
1978 | 2310 else |
10004
e517da95bf98
Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents:
10003
diff
changeset
|
2311 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
|
2312 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
|
2313 LIBCRUFT='$(top_builddir)/libcruft/libcruft.$(LIBEXT)' |
1664 | 2314 fi |
4163 | 2315 |
4110 | 2316 AC_SUBST(LD_CXX) |
3232 | 2317 AC_SUBST(RDYNAMIC_FLAG) |
4128 | 2318 AC_SUBST(ENABLE_DYNAMIC_LINKING) |
4110 | 2319 AC_SUBST(LIBOCTINTERP) |
2320 AC_SUBST(LIBOCTAVE) | |
2321 AC_SUBST(LIBCRUFT) | |
1901 | 2322 |
8998
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
2323 dnl Maybe <cmath> defines the IEEE functions we need. |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
2324 |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
2325 OCTAVE_CMATH_FUNC(isnan) |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
2326 OCTAVE_CMATH_FUNC(isinf) |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
2327 OCTAVE_CMATH_FUNC(isfinite) |
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
2328 |
832 | 2329 dnl Would like to get rid of this cruft, and just have |
2330 dnl | |
2331 dnl AC_CHECK_FUNCS(finite isnan isinf) | |
2332 dnl | |
2333 dnl instead, but that used to fail on some systems... | |
369 | 2334 dnl |
832 | 2335 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
2336 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that | |
369 | 2337 dnl fails, we try again by including math.h and invoking the function |
2338 dnl with an argument. | |
869 | 2339 |
11229
2f36145742c9
eliminate special cases for SCO systems
John W. Eaton <jwe@octave.org>
parents:
11219
diff
changeset
|
2340 ### I am told that Inf and NaN don't work on m68k HP sytems. |
956 | 2341 |
2342 case "$canonical_host_type" in | |
1384 | 2343 m68k-hp-hpux*) |
956 | 2344 ;; |
2345 *) | |
11209
94d9d412a2a0
improve Matlab compatibility of rem and mod
John W. Eaton <jwe@octave.org>
parents:
11208
diff
changeset
|
2346 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
|
2347 AC_CHECK_FUNCS(_finite _isnan) |
5098 | 2348 AC_CHECK_DECLS(signbit, , , [#include <math.h>]) |
956 | 2349 ;; |
2350 esac | |
2351 | |
1076 | 2352 ### Check for nonstandard but common math functions that we need. |
2353 | |
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
|
2354 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
|
2355 AC_CHECK_FUNCS(hypotf _hypotf cbrt cbrtf) |
3130 | 2356 |
869 | 2357 ### Checks for OS specific cruft. |
2358 | |
3887 | 2359 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) |
2360 | |
1186 | 2361 AC_STRUCT_TIMEZONE |
1388 | 2362 AC_FUNC_CLOSEDIR_VOID |
1225 | 2363 |
3892 | 2364 AC_CHECK_MEMBERS(struct group.gr_passwd) |
2548 | 2365 |
3887 | 2366 octave_found_termlib=no |
2592 | 2367 for termlib in ncurses curses termcap terminfo termlib; do |
9515 | 2368 AC_CHECK_LIB(${termlib}, tputs, [ |
2369 TERM_LIBS="-l${termlib}" | |
2370 octave_found_termlib=yes | |
2371 break]) | |
405 | 2372 done |
869 | 2373 |
3887 | 2374 if test "$octave_found_termlib" = no; then |
2375 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ | |
2376 r -ltermlib!" | |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2377 AC_MSG_WARN([$warn_termlibs]) |
2488 | 2378 fi |
9515 | 2379 AC_SUBST(TERM_LIBS) |
2488 | 2380 |
3822 | 2381 OCTAVE_ENABLE_READLINE |
2382 | |
832 | 2383 AC_MSG_CHECKING([for struct exception in math.h]) |
5842 | 2384 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], |
2385 [[struct exception *x; x->type; x->name;]])], | |
2386 [AC_MSG_RESULT(yes) | |
2387 AC_DEFINE(EXCEPTION_IN_MATH, 1, | |
2388 [Define if your math.h declares struct exception for matherr().])], | |
2389 [AC_MSG_RESULT(no)]) | |
869 | 2390 |
2391 ### Signal stuff. | |
2392 | |
5844 | 2393 AC_CHECK_DECLS([sys_siglist], [], [], |
2394 [#include <signal.h> | |
2395 /* NetBSD declares sys_siglist in unistd.h. */ | |
2396 #if HAVE_UNISTD_H | |
2397 # include <unistd.h> | |
2398 #endif | |
2399 ]) | |
869 | 2400 |
2633 | 2401 ### A system dependent kluge or two. |
2402 | |
10073
dcde57cb5778
use times module from gnulib
John W. Eaton <jwe@octave.org>
parents:
10072
diff
changeset
|
2403 AC_CHECK_FUNCS(getrusage) |
2427 | 2404 case "$canonical_host_type" in |
3971 | 2405 *-*-cygwin*) |
3887 | 2406 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.]) |
2427 | 2407 ;; |
2408 esac | |
2409 | |
869 | 2410 ### Checks for other programs used for building, testing, installing, |
2411 ### and running Octave. | |
2412 | |
4544 | 2413 AC_PROG_AWK |
7244 | 2414 OCTAVE_PROG_FIND |
4084 | 2415 OCTAVE_PROG_SED |
5465 | 2416 OCTAVE_PROG_PERL |
5496 | 2417 OCTAVE_PROG_PYTHON |
4084 | 2418 |
3729 | 2419 OCTAVE_PROG_FLEX |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2420 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
|
2421 |
3729 | 2422 OCTAVE_PROG_BISON |
869 | 2423 |
1722 | 2424 AC_PROG_LN_S |
2425 | |
405 | 2426 AC_PROG_INSTALL |
2642 | 2427 INSTALL_SCRIPT='${INSTALL}' |
2428 AC_SUBST(INSTALL_SCRIPT) | |
869 | 2429 |
5468 | 2430 OCTAVE_PROG_DESKTOP_FILE_INSTALL |
2431 | |
3130 | 2432 OCTAVE_PROG_GNUPLOT |
2433 OCTAVE_PROG_PAGER | |
3673 | 2434 OCTAVE_PROG_GPERF |
3130 | 2435 |
5934 | 2436 OCTAVE_PROG_GHOSTSCRIPT |
2437 OCTAVE_PROG_TEXI2DVI | |
2438 OCTAVE_PROG_TEXI2PDF | |
2439 | |
14579
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2440 ### Need to disable building documentation if gnuplot was not found, |
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2441 ### unless it was already disabled previously. |
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2442 |
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2443 if test -n "$DOCDIR" && test -n "$warn_gnuplot"; then |
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2444 DOCDIR= |
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2445 warn_docs="building documentation disabled because gnuplot was not found; make dist will fail" |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
2446 OCTAVE_CONFIGURE_WARNING([warn_docs]) |
14579
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2447 fi |
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2448 AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test -n "$DOCDIR"]) |
4dc85c4f151b
Disable building documentation if gnuplot not found
Mike Miller <mtmiller@ieee.org>
parents:
14561
diff
changeset
|
2449 |
2032 | 2450 ### 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
|
2451 ### 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
|
2452 ### 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
|
2453 ### 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
|
2454 ### struct returned by octave_config_info, which is used by test.m. |
2032 | 2455 |
2456 AC_OUTPUT_MAKE_DEFS | |
3956 | 2457 |
6957 | 2458 ### We have to insert extra levels of backslash quoting here so that |
2459 ### the right thing ends up in oct-conf.h. | |
6959 | 2460 UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'` |
5844 | 2461 AC_MSG_NOTICE([defining UGLY_DEFS to be $UGLY_DEFS]) |
2032 | 2462 AC_SUBST(UGLY_DEFS) |
2463 | |
4645 | 2464 ### Maybe add -Wall, -W, and -Wshadow to compiler flags now that we're |
4587 | 2465 ### done feature testing. |
869 | 2466 |
11514
a1386fab2a02
configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents:
11513
diff
changeset
|
2467 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
|
2468 |
a1386fab2a02
configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents:
11513
diff
changeset
|
2469 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
|
2470 |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2471 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
|
2472 |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2473 AC_ARG_ENABLE(extra-warning-flags, |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2474 [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
|
2475 [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
|
2476 [if test "$enableval" = no; then |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2477 try_extra_warning_flags=false |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2478 fi], []) |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2479 |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2480 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
|
2481 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
|
2482 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
|
2483 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
|
2484 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
|
2485 done |
a1386fab2a02
configure.ac: eliminate some code duplication when checking for extra compiler flags
John W. Eaton <jwe@octave.org>
parents:
11513
diff
changeset
|
2486 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
|
2487 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
|
2488 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
|
2489 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
|
2490 done |
405 | 2491 fi |
869 | 2492 |
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
|
2493 GCC_STRICT_FLAGS="-Wconversion" |
2813 | 2494 |
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
|
2495 GXX_STRICT_FLAGS="-Wconversion -Weffc++" |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2496 |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2497 try_strict_warning_flags=false |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2498 |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2499 AC_ARG_ENABLE(strict-warning-flags, |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2500 [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
|
2501 [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
|
2502 [if test "$enableval" = yes; then |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2503 try_strict_warning_flags=true |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2504 fi], []) |
2813 | 2505 |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2506 if $try_strict_warning_flags; then |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2507 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
|
2508 OCTAVE_CC_FLAG($flag, [ |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2509 WARN_CFLAGS="$WARN_CFLAGS $flag"; |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2510 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
|
2511 done |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2512 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
|
2513 OCTAVE_CXX_FLAG($flag, [ |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2514 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2515 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
|
2516 done |
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
2517 fi |
2813 | 2518 |
4626 | 2519 AC_SUBST(WARN_CFLAGS) |
2520 AC_SUBST(WARN_CXXFLAGS) | |
2521 | |
1146 | 2522 ### Run configure in subdirectories. |
2523 | |
1304 | 2524 export CC |
2525 export CXX | |
2526 export F77 | |
2527 | |
3923 | 2528 ### Some things to add to the bottom of config.h. |
2529 | |
2530 AH_BOTTOM([ | |
10411 | 2531 #if !defined (GNULIB_NAMESPACE) |
2532 #define GNULIB_NAMESPACE gnulib | |
2533 #endif | |
2534 | |
3923 | 2535 #if defined (__GNUC__) |
5389 | 2536 #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) |
3923 | 2537 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) |
2538 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) | |
2539 #else | |
5389 | 2540 #define GCC_ATTR_DEPRECATED |
3923 | 2541 #define GCC_ATTR_NORETURN |
2542 #define GCC_ATTR_UNUSED | |
2543 #endif | |
2544 | |
2545 #define X_CAST(T, E) (T) (E) | |
2546 | |
5854 | 2547 #if defined (CXX_BROKEN_REINTERPRET_CAST) |
2548 #define FCN_PTR_CAST(T, E) (T) (E) | |
2549 #else | |
2550 #define FCN_PTR_CAST(T, E) reinterpret_cast<T> (E) | |
2551 #endif | |
2552 | |
3923 | 2553 #if !defined(HAVE_DEV_T) |
4064 | 2554 typedef short dev_t; |
3923 | 2555 #endif |
2556 | |
2557 #if !defined(HAVE_INO_T) | |
4064 | 2558 typedef unsigned long ino_t; |
3923 | 2559 #endif |
2560 | |
6122 | 2561 #if defined (_MSC_VER) |
2562 #define __WIN32__ | |
6276 | 2563 #define WIN32 |
6122 | 2564 /* missing parameters in macros */ |
2565 #pragma warning (disable: 4003) | |
2566 /* missing implementations in template instantiation */ | |
2567 #pragma warning (disable: 4996) | |
2568 /* deprecated function names (FIXME?) */ | |
2569 #pragma warning (disable: 4661) | |
2570 #endif | |
2571 | |
4377 | 2572 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
4101 | 2573 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
6049 | 2574 #elif defined (__CYGWIN__) |
4377 | 2575 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
2576 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
6049 | 2577 #else |
2578 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
4101 | 2579 #endif |
2580 | |
2581 /* Define if we expect to have <windows.h>, Sleep, etc. */ | |
4102 | 2582 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
4101 | 2583 #define OCTAVE_USE_WINDOWS_API 1 |
2584 #endif | |
4153 | 2585 |
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
|
2586 #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
|
2587 #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
|
2588 #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
|
2589 |
4180 | 2590 /* sigsetjmp is a macro, not a function. */ |
2591 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) | |
2592 #define OCTAVE_HAVE_SIG_JUMP | |
2593 #endif | |
4249 | 2594 |
4552 | 2595 #if defined (_UNICOS) |
2596 #define F77_USES_CRAY_CALLING_CONVENTION | |
2597 #endif | |
2598 | |
2599 #if 0 | |
2600 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION | |
2601 #endif | |
5275 | 2602 |
5297 | 2603 #ifdef USE_64_BIT_IDX_T |
2604 #define SIZEOF_OCTAVE_IDX_TYPE 8 | |
2605 #else | |
2606 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT | |
2607 #endif | |
2608 | |
9648
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2609 /* 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
|
2610 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
|
2611 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
|
2612 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2613 #define OCTAVE_INT_USE_LONG_DOUBLE |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2614 #endif |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2615 |
7067 | 2616 #define OCTAVE_EMPTY_CPP_ARG |
2617 | |
9648
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2618 /* 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
|
2619 and double versions are both available. */ |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2620 #if defined (HAVE_FFTW3) && defined (HAVE_FFTW3F) |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2621 #define HAVE_FFTW |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2622 #endif |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2623 |
9648
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2624 /* 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
|
2625 #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
|
2626 #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
|
2627 #endif |
bb36a5730ecc
configure.in (AH_BOTTOM): If HAVE_Z is defined, define HAVE_ZLIB
John W. Eaton <jwe@octave.org>
parents:
9603
diff
changeset
|
2628 |
9648
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2629 /* oct-dlldefs.h */ |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2630 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2631 #if defined (_MSC_VER) |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2632 #define OCTAVE_EXPORT __declspec(dllexport) |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2633 #define OCTAVE_IMPORT __declspec(dllimport) |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2634 #else |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2635 /* 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
|
2636 #define OCTAVE_EXPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2637 #define OCTAVE_IMPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2638 #endif |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2639 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2640 /* API macro for libcruft */ |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2641 #ifdef CRUFT_DLL |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2642 #define CRUFT_API OCTAVE_EXPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2643 #else |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2644 #define CRUFT_API OCTAVE_IMPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2645 #endif |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2646 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2647 /* API macro for liboctave */ |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2648 #ifdef OCTAVE_DLL |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2649 #define OCTAVE_API OCTAVE_EXPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2650 #else |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2651 #define OCTAVE_API OCTAVE_IMPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2652 #endif |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2653 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2654 /* API macro for src */ |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2655 #ifdef OCTINTERP_DLL |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2656 #define OCTINTERP_API OCTAVE_EXPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2657 #else |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2658 #define OCTINTERP_API OCTAVE_IMPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2659 #endif |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2660 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2661 /* API macro for src/graphics */ |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2662 #ifdef OCTGRAPHICS_DLL |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2663 #define OCTGRAPHICS_API OCTAVE_EXPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2664 #else |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2665 #define OCTGRAPHICS_API OCTAVE_IMPORT |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2666 #endif |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2667 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2668 /* oct-types.h */ |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2669 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2670 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
|
2671 |
11844593875a
eliminate oct-dlldefs.h and oct-types.h
John W. Eaton <jwe@octave.org>
parents:
9645
diff
changeset
|
2672 #include <stdint.h> |
13985
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2673 |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2674 /* Tag indicating octave config.h has been included */ |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2675 #define OCTAVE_CONFIG_INCLUDED 1 |
3923 | 2676 ]) |
2677 | |
869 | 2678 ### Do the substitutions in all the Makefiles. |
2679 | |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2680 AC_SUBST(ac_config_files) |
9645 | 2681 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
|
2682 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2683 AC_CONFIG_FILES([ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2684 Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2685 doc/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2686 doc/faq/Makefile |
12336
af2b18354a8e
Add new Octave O logo to Mercurial and build process.
Rik <octave@nomad.inbox5.com>
parents:
12218
diff
changeset
|
2687 doc/icons/Makefile |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2688 doc/interpreter/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2689 doc/liboctave/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2690 doc/refcard/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2691 examples/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2692 libcruft/Makefile |
9817
932b0efeb81b
restore rules to create libcruft/cruft.def
John W. Eaton <jwe@octave.org>
parents:
9804
diff
changeset
|
2693 libcruft/mkf77def |
9946 | 2694 libgnu/Makefile |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2695 liboctave/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2696 scripts/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2697 src/Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2698 test/Makefile]) |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
2699 |
3887 | 2700 AC_OUTPUT |
1225 | 2701 |
2702 ### Print a summary so that important information isn't missed. | |
2703 | |
5844 | 2704 AC_MSG_NOTICE([ |
1225 | 2705 |
2706 Octave is now configured for $canonical_host_type | |
2707 | |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2708 Source directory: $srcdir |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2709 Installation prefix: $prefix |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2710 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
|
2711 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
|
2712 Fortran compiler: $F77 $FFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2713 Fortran libraries: $FLIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2714 Lex libraries: $LEXLIB |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2715 LIBS: $LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2716 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2717 AMD CPPFLAGS: $AMD_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2718 AMD LDFLAGS: $AMD_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2719 AMD libraries: $AMD_LIBS |
14144
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2720 ARPACK CPPFLAGS: $ARPACK_CPPFLAGS |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2721 ARPACK LDFLAGS: $ARPACK_LDFLAGS |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2722 ARPACK libraries: $ARPACK_LIBS |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2723 BLAS libraries: $BLAS_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2724 CAMD CPPFLAGS: $CAMD_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2725 CAMD LDFLAGS: $CAMD_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2726 CAMD libraries: $CAMD_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2727 CARBON libraries: $CARBON_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2728 CCOLAMD CPPFLAGS: $CCOLAMD_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2729 CCOLAMD LDFLAGS: $CCOLAMD_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2730 CCOLAMD libraries: $CCOLAMD_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2731 CHOLMOD CPPFLAGS: $CHOLMOD_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2732 CHOLMOD LDFLAGS: $CHOLMOD_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2733 CHOLMOD libraries: $CHOLMOD_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2734 COLAMD CPPFLAGS: $COLAMD_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2735 COLAMD LDFLAGS: $COLAMD_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2736 COLAMD libraries: $COLAMD_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2737 CURL CPPFLAGS: $CURL_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2738 CURL LDFLAGS: $CURL_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2739 CURL libraries: $CURL_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2740 CXSPARSE CPPFLAGS: $CXSPARSE_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2741 CXSPARSE LDFLAGS: $CXSPARSE_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2742 CXSPARSE libraries: $CXSPARSE_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2743 DL libraries: $DL_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2744 FFTW3 CPPFLAGS: $FFTW3_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2745 FFTW3 LDFLAGS: $FFTW3_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2746 FFTW3 libraries: $FFTW3_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2747 FFTW3F CPPFLAGS: $FFTW3F_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2748 FFTW3F LDFLAGS: $FFTW3F_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2749 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
|
2750 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
|
2751 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
|
2752 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
|
2753 FT2_LIBS: $FT2_LIBS |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2754 GLPK CPPFLAGS: $GLPK_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2755 GLPK LDFLAGS: $GLPK_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2756 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
|
2757 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
|
2758 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
|
2759 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
|
2760 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
|
2761 Magick++ libraries: $MAGICK_LIBS |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2762 HDF5 CPPFLAGS: $HDF5_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2763 HDF5 LDFLAGS: $HDF5_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2764 HDF5 libraries: $HDF5_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2765 LAPACK libraries: $LAPACK_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2766 OPENGL libraries: $OPENGL_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2767 PTHREAD flags: $PTHREAD_CFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2768 PTHREAD libraries: $PTHREAD_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2769 QHULL CPPFLAGS: $QHULL_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2770 QHULL LDFLAGS: $QHULL_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2771 QHULL libraries: $QHULL_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2772 QRUPDATE libraries: $QRUPDATE_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2773 READLINE libraries: $READLINE_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2774 REGEX libraries: $REGEX_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2775 TERM libraries: $TERM_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2776 UMFPACK libraries: $UMFPACK_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2777 X11 include flags: $X11_INCFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2778 X11 libraries: $X11_LIBS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2779 Z CPPFLAGS: $Z_CPPFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2780 Z LDFLAGS: $Z_LDFLAGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2781 Z libraries: $Z_LIBS |
9519
ee99f9f37505
improve configure checks for qhull and curl libs
John W. Eaton <jwe@octave.org>
parents:
9515
diff
changeset
|
2782 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2783 Default pager: $DEFAULT_PAGER |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2784 gnuplot: $GNUPLOT |
1664 | 2785 |
4110 | 2786 Do internal array bounds checking: $BOUNDS_CHECKING |
13838
a35d381e22b0
make octave_allocator optional and disable by default
John W. Eaton <jwe@octave.org>
parents:
13745
diff
changeset
|
2787 Use octave_allocator: $USE_OCTAVE_ALLOCATOR |
4110 | 2788 Build static libraries: $STATIC_LIBS |
2789 Build shared libraries: $SHARED_LIBS | |
4128 | 2790 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG |
4110 | 2791 Include support for GNU readline: $USE_READLINE |
5275 | 2792 64-bit array dims and indexing: $USE_64_BIT_IDX_T |
1225 | 2793 ]) |
3105 | 2794 |
2795 warn_msg_printed=false | |
2796 | |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
2797 OCTAVE_CONFIGURE_WARNING_SUMMARY |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
2798 |
4469 | 2799 if $ENABLE_DYNAMIC_LINKING; then |
2800 if $SHARED_LIBS; then | |
2801 true | |
2802 else | |
2803 AC_MSG_WARN([You used --enable-dl but not --enable-shared.]) | |
2804 AC_MSG_WARN([Are you sure that is what you want to do?]) | |
2805 warn_msg_printed=true | |
2806 fi | |
2807 fi | |
2808 | |
5857 | 2809 if $USE_64_BIT_IDX_T; then |
6161 | 2810 AC_MSG_WARN([]) |
5857 | 2811 AC_MSG_WARN([You used the EXPERIMENTAL --enable-64 option.]) |
2812 AC_MSG_WARN([Are you sure that is what you want to do?]) | |
2813 AC_MSG_WARN([]) | |
10331
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
2814 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
|
2815 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
|
2816 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
|
2817 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
|
2818 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
|
2819 AC_MSG_WARN([variable on the configure command line. You must also]) |
14144
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2820 AC_MSG_WARN([compile the ARPACK, BLAS, LAPACK, QRUPDATE, and SuiteSparse]) |
10331
6a50aa2cdf00
never compile ranlib with 8-byte integers
John W. Eaton <jwe@octave.org>
parents:
10266
diff
changeset
|
2821 AC_MSG_WARN([libraries to use 8 byte signed integers for array indexing.]) |
6161 | 2822 AC_MSG_WARN([]) |
5857 | 2823 warn_msg_printed=true |
3105 | 2824 fi |
2825 | |
10471
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
2826 if $USE_OPENMP; then |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
2827 AC_MSG_WARN([]) |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
2828 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
|
2829 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
|
2830 AC_MSG_WARN([]) |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
2831 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
|
2832 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
|
2833 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
|
2834 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
|
2835 AC_MSG_WARN([]) |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
2836 warn_msg_printed=true |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
2837 fi |
bcabc1c4f20c
Add detection of OpenMP support to configure. Disabled by default
David Bateman <dbateman@free.fr>
parents:
10456
diff
changeset
|
2838 |
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
|
2839 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
|
2840 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
|
2841 else |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2842 AC_MSG_WARN([]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2843 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
|
2844 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
|
2845 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
|
2846 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
|
2847 AC_MSG_WARN([]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2848 warn_msg_printed=true |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2849 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2850 |
10011
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
2851 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
|
2852 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
|
2853 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
|
2854 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
|
2855 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
|
2856 else |
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
2857 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
|
2858 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
|
2859 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
|
2860 fi |
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
2861 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
|
2862 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
|
2863 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
|
2864 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
|
2865 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
|
2866 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
|
2867 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
|
2868 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
|
2869 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
|
2870 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
|
2871 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
|
2872 |
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
2873 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
|
2874 fi |
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
2875 |
13985
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2876 if $USE_ATOMIC_REFCOUNT; then |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2877 AC_MSG_WARN([]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2878 AC_MSG_WARN([Using atomic reference counting.]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2879 AC_MSG_WARN([This feature allows to access octave data safely from]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2880 AC_MSG_WARN([another thread, for instance from a GUI. However this]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2881 AC_MSG_WARN([results in a small performance penalty in the octave]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2882 AC_MSG_WARN([interpreter.]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2883 AC_MSG_WARN([]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2884 if $USE_OCTAVE_ALLOCATOR; then |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2885 AC_MSG_WARN([Thread-safe behavior is not guaranteed unless you also]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2886 AC_MSG_WARN([disable the use of the octave_allocator class.]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2887 AC_MSG_WARN([]) |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2888 fi |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2889 warn_msg_printed=true |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2890 fi |
43cc49c7abd1
Use thread-safe atomic reference counting (GCC and MSVC).
Michael Goffioul <michael.goffioul@gmail.com>
parents:
13838
diff
changeset
|
2891 |
6191 | 2892 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
|
2893 AC_MSG_NOTICE([]) |
14657
8a84849ad986
build: Restore printing some summary ./configure warnings at the end
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14630
diff
changeset
|
2894 AC_MSG_NOTICE([NOTE: Libraries or auxiliary programs may be skipped if they are]) |
8a84849ad986
build: Restore printing some summary ./configure warnings at the end
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14630
diff
changeset
|
2895 AC_MSG_NOTICE([NOTE: not found OR if they are missing required features on your]) |
8a84849ad986
build: Restore printing some summary ./configure warnings at the end
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14630
diff
changeset
|
2896 AC_MSG_NOTICE([NOTE: system. ]) |
6161 | 2897 fi |
2898 | |
3105 | 2899 ### End of configure. |