Mercurial > mxe-octave
annotate configure.ac @ 4114:02c9f7e9792e
merge away extra head on default
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 23 Mar 2016 08:50:22 -0400 |
parents | 0962acdde3be |
children | 5ae69991eaa1 |
rev | line source |
---|---|
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 dnl Process this file with autoconf to produce a configure script. |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 AC_PREREQ([2.62]) |
3890 | 4 AC_INIT([MXE-Octave], [0.0.35], [http://octave.org/bugs.html], [mxe-octave]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 AC_CONFIG_SRCDIR([src/octave.mk]) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 AC_CONFIG_AUX_DIR([tools]) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 ### Check for bootstrap tools. This list is probably not complete yet. |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 AC_PROG_AWK |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 AC_PROG_GREP |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 AC_PROG_LN_S |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 AC_PROG_MKDIR_P |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 AC_PROG_INSTALL |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 AC_PROG_CC |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 AC_PROG_CPP |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 AC_PROG_GCC_TRADITIONAL |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 dnl PKG_PROG_PKG_CONFIG |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 dnl OCTAVE_PROG_FIND |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 dnl OCTAVE_PROG_SED |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 dnl OCTAVE_PROG_PERL |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 dnl OCTAVE_PROG_GPERF |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 dnl OCTAVE_PROG_FLEX |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 dnl OCTAVE_PROG_BISON |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 dnl OCTAVE_PROG_MAKEINFO |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 dnl OCTAVE_PROG_TEXI2DVI |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 dnl OCTAVE_PROG_TEXI2PDF |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 dnl OCTAVE_PROG_GHOSTSCRIPT |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 dnl OCTAVE_PROG_GNUPLOT |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 dnl OCTAVE_PROG_PAGER |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 dnl OCTAVE_PROG_PYTHON |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 dnl OCTAVE_CHECK_LIB_TERMLIB |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 ### Define the path to the shell on the host system. Most systems will |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 ### ensure /bin/sh is the default shell so this can be safely ignored by |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 ### almost everyone. However, when building for Android, for example, |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 ### this will need to be set. |
3044 | 40 SHELL=bash |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 AC_ARG_WITH([shell], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 [AS_HELP_STRING([--with-shell=SHELL], |
3044 | 43 [use SHELL as the shell interpreter (default: bash)])]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
44 case $with_shell in |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 no) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
46 AC_MSG_ERROR([A shell interpreter is required]) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 ;; |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
48 yes | "") |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 ;; |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 *) |
3044 | 51 SHELL=$with_shell |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 ;; |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
53 esac |
3044 | 54 AC_SUBST(SHELL) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
55 |
3710
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
56 ENABLE_WINDOWS_64=no |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
57 AC_ARG_ENABLE(windows-64, |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
58 [AS_HELP_STRING([--enable-windows-64], |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
59 [build a Windows 64 cross compiler; resulting build will work only on 64-bit Windows systems])], |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
60 [if test "$enableval" = yes; then ENABLE_WINDOWS_64=yes; fi], []) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
61 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
62 ENABLE_64=no |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
63 AC_ARG_ENABLE(64, |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
64 [AS_HELP_STRING([--enable-64], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
65 [(EXPERIMENTAL) use 64-bit integers for array dimensions and indexing])], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
66 [if test "$enableval" = yes; then ENABLE_64=yes; fi], []) |
3710
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
67 |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
68 if test "$ENABLE_64" = yes && test "$ENABLE_WINDOWS_64" = no; then |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
69 AC_MSG_WARN([--enable-64 implies --enable-windows-64]) |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
70 ENABLE_WINDOWS_64=yes |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
71 fi |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
72 |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
73 AC_SUBST(ENABLE_64) |
3710
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
74 AC_SUBST(ENABLE_WINDOWS_64) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
75 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
76 BUILD_SHARED=yes |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
77 AC_ARG_ENABLE(shared, |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
78 [AS_HELP_STRING([--disable-shared], [Disable shared libraries])], |
3207
21a6b1257dd8
make --disable-jit and --disable-shared work
John W. Eaton <jwe@octave.org>
parents:
3203
diff
changeset
|
79 [if test "$enableval" = no; then BUILD_SHARED=no; fi], []) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
80 AC_SUBST(BUILD_SHARED) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
81 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
82 BUILD_STATIC=no |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
83 AC_ARG_ENABLE(static, |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
84 [AS_HELP_STRING([--enable-static], [Enable static libraries])], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
85 [if test "$enableval" = yes; then BUILD_STATIC=yes; fi], []) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
86 AC_SUBST(BUILD_STATIC) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
87 |
3524
8a4a11234ccf
disable jit compiler by default
John W. Eaton <jwe@octave.org>
parents:
3472
diff
changeset
|
88 ENABLE_JIT=no |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
89 AC_ARG_ENABLE([jit], |
3524
8a4a11234ccf
disable jit compiler by default
John W. Eaton <jwe@octave.org>
parents:
3472
diff
changeset
|
90 [AS_HELP_STRING([--enable-jit], [Enable Octave JIT compiler])], |
8a4a11234ccf
disable jit compiler by default
John W. Eaton <jwe@octave.org>
parents:
3472
diff
changeset
|
91 [if test "$enableval" = yes; then ENABLE_JIT=yes; fi], []) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
92 AC_SUBST(ENABLE_JIT) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
93 |
3333
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
94 ENABLE_JAVA=yes |
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
95 AC_ARG_ENABLE([java], |
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
96 [AS_HELP_STRING([--disable-java], [Disable Java])], |
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
97 [if test "$enableval" = no; then ENABLE_JAVA=no; fi], []) |
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
98 AC_SUBST(ENABLE_JAVA) |
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
99 |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
100 ENABLE_DOCS=yes |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
101 AC_ARG_ENABLE([docs], |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
102 [AS_HELP_STRING([--disable-docs], [Disable Octave docs])], |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
103 [if test "$enableval" = no; then ENABLE_DOCS=no; fi], []) |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
104 AC_SUBST(ENABLE_DOCS) |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
105 |
3229
1cbee4743e97
Use consistant yes and no as the enable options for configure.ac
John Donoghue <john.donoghue@ieee.org>
parents:
3226
diff
changeset
|
106 MXE_NATIVE_BUILD=no |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
107 AC_ARG_ENABLE([native-build], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
108 [AS_HELP_STRING([--enable-native-build], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
109 [Enable native build (default is cross compile)])], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
110 [if test "$enableval" = yes; then MXE_NATIVE_BUILD=yes; fi], []) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
111 AC_SUBST(MXE_NATIVE_BUILD) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
112 |
3208
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
113 USE_SYSTEM_FONTCONFIG=$MXE_NATIVE_BUILD |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
114 AC_ARG_ENABLE([system-fontconfig], |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
115 [AS_HELP_STRING([--enable-system-fontconfig], |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
116 [Use fontconfig already installed on system])], |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
117 [if test "$enableval" = yes; then USE_SYSTEM_FONTCONFIG=yes; else USE_SYSTEM_FONTCONFIG=no; fi], []) |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
118 AC_SUBST(USE_SYSTEM_FONTCONFIG) |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
119 |
3827
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
120 USE_SYSTEM_X11_LIBS=$MXE_NATIVE_BUILD |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
121 AC_ARG_ENABLE([system-x11-libs], |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
122 [AS_HELP_STRING([--enable-system-x11-libs], |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
123 [Use X11 libraries already installed on system])], |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
124 [if test "$enableval" = yes; then USE_SYSTEM_X11_LIBS=yes; else USE_SYSTEM_X11_LIBS=no; fi], []) |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
125 AC_SUBST(USE_SYSTEM_X11_LIBS) |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
126 |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
127 USE_SYSTEM_GCC=$MXE_NATIVE_BUILD |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
128 AC_ARG_ENABLE([system-gcc], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
129 [AS_HELP_STRING([--enable-system-gcc], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
130 [Use GCC already installed on system])], |
3208
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
131 [if test "$enableval" = yes; then USE_SYSTEM_GCC=yes; else USE_SYSTEM_GCC=no; fi], []) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
132 AC_SUBST(USE_SYSTEM_GCC) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
133 |
3226
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
134 ENABLE_LIB64_DIRECTORY=no |
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
135 AC_ARG_ENABLE(lib64-directory, |
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
136 [AS_HELP_STRING([--enable-lib64-directory], |
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
137 [Search lib64 directory for libraries])], |
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
138 [if test "$enableval" = yes; then ENABLE_LIB64_DIRECTORY=yes; fi], []) |
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
139 AC_SUBST(ENABLE_LIB64_DIRECTORY) |
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
140 |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
141 USE_PIC_FLAG=no |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
142 AC_ARG_ENABLE([pic-flag], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
143 [AS_HELP_STRING([--enable-pic-flag], [Compile with PIC flag])], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
144 [if test "$enableval" = yes; then USE_PIC_FLAG=yes; fi], []) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
145 AC_SUBST(USE_PIC_FLAG) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
146 |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
147 STRIP_DIST_FILES=yes |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
148 AC_ARG_ENABLE([strip-dist-files], |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
149 [AS_HELP_STRING([--disable-strip-dist-files], [Don't strip distributed files])], |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
150 [if test "$enableval" = no; then STRIP_DIST_FILES=no; fi], []) |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
151 AC_SUBST(STRIP_DIST_FILES) |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
152 |
3693 | 153 ENABLE_OPENBLAS=yes |
3068
fb0836e4a677
Add --enable-openblas option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3060
diff
changeset
|
154 AC_ARG_ENABLE([openblas], |
3693 | 155 [AS_HELP_STRING([--disable-openblas], |
3714 | 156 [Disable use of openblas in Octave])], |
3693 | 157 [if test "$enableval" = no; then ENABLE_OPENBLAS=no; fi], []) |
3068
fb0836e4a677
Add --enable-openblas option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3060
diff
changeset
|
158 AC_SUBST(ENABLE_OPENBLAS) |
fb0836e4a677
Add --enable-openblas option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3060
diff
changeset
|
159 |
3887
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
160 ENABLE_QHULL_NO_STRICT_ALIASING_FLAG=no |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
161 AC_ARG_ENABLE([qhull-no-strict-aliasing-flag], |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
162 [AS_HELP_STRING([--enable-qhull-no-strict-aliasing-flag], |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
163 [Compile Qhull with -fno-strict-aliasing flag])], |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
164 [if test "$enableval" = yes; then |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
165 ENABLE_QHULL_NO_STRICT_ALIASING_FLAG=yes; |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
166 fi], []) |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
167 AC_SUBST(ENABLE_QHULL_NO_STRICT_ALIASING_FLAG) |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
168 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
169 ENABLE_OCTAVE=stable |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
170 AC_ARG_ENABLE([octave], |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
171 [AS_HELP_STRING([--enable-octave=stable], |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
172 [Enable a specific build of octave (stable, alpha, default)])], |
3727
5e79ab51035f
configure: set default enable-octave to stable
John Donoghue <john.donoghue@ieee.org>
parents:
3721
diff
changeset
|
173 [], [enableval=$ENABLE_OCTAVE]) |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
174 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
175 case $enableval in |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
176 stable) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
177 ENABLE_OCTAVE="stable-" |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
178 ;; |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
179 alpha) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
180 ENABLE_OCTAVE="" |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
181 ;; |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
182 default) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
183 ENABLE_OCTAVE="default-" |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
184 ;; |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
185 *) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
186 ENABLE_OCTAVE="stable-" |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
187 AC_MSG_WARN([Unknown octave type $enableval - using enable-octave=stable]) |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
188 ;; |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
189 esac |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
190 |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
191 AC_SUBST(ENABLE_OCTAVE) |
3611 | 192 |
3853
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
193 ENABLE_BINARY_PACKAGES=no |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
194 AC_ARG_ENABLE([binary-packages], |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
195 [AS_HELP_STRING([--enable-binary-packages], |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
196 [Enable creating binary octave forge packages])], |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
197 [if test "$enableval" = yes; then ENABLE_BINARY_PACKAGES=yes; fi], []) |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
198 AC_SUBST(ENABLE_BINARY_PACKAGES) |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
199 |
3958
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
200 ENABLE_DEVEL_TOOLS=no |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
201 AC_ARG_ENABLE([devel-tools], |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
202 [AS_HELP_STRING([--enable-devel-tools], |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
203 [Enable creating devel tools such as gdb])], |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
204 [if test "$enableval" = yes; then ENABLE_DEVEL_TOOLS=yes; fi], []) |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
205 AC_SUBST(ENABLE_DEVEL_TOOLS) |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
206 |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
207 ### Default is to cross compile for mingw. |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
208 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
209 echo $host_alias |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
210 if test -n "$host_alias"; then |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
211 MXE_SYSTEM=$host_alias |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
212 else |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
213 MXE_SYSTEM=mingw |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
214 fi |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
215 AC_SUBST(MXE_SYSTEM) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
216 |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
3044
diff
changeset
|
217 # set MXE_ROOTDIR for knowing the mxe root |
4066 | 218 MXE_ROOTDIR=`cd "$builddir"; pwd` |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
3044
diff
changeset
|
219 AC_SUBST(MXE_ROOTDIR) |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
3044
diff
changeset
|
220 |
3429
6cf5d50556d4
* tools/set-mxe-env.sh.in: Rename from tools/set_mxe_env.sh.in.
John W. Eaton <jwe@octave.org>
parents:
3367
diff
changeset
|
221 AC_CONFIG_FILES([Makefile tools/set-mxe-env.sh]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
222 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
223 AC_OUTPUT |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
224 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
225 ### End of configure. |