annotate configure.ac @ 417:4e427ec1650a

build: add Python library directory to oct file runtime path * configure.ac: Add a -R option to add the Python library directory to the runtime path of oct files if it is in a non-standard location.
author Mike Miller <mtmiller@octave.org>
date Thu, 04 May 2017 08:11:33 -0700
parents aeed116cf9f9
children a39b2e9112a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
1 dnl Process this file with autoconf to produce a configure script.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
2 dnl
150
a3dc9d24ae38 maint: Add myself to copyright notices
Mike Miller <mtmiller@octave.org>
parents: 149
diff changeset
3 dnl Copyright (C) 2015-2016 Mike Miller
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
4 dnl Copyright (C) 2008 David Grundberg, HÃ¥kan Fors Nilsson
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
5 dnl Copyright (C) 2009 Jaroslav Hajek, VZLU Prague
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
6 ###
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
7 ### This file is part of Pytave.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
8 ###
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
9 ### Pytave is free software: you can redistribute it and/or modify it
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
10 ### under the terms of the GNU General Public License as published by the
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
11 ### Free Software Foundation, either version 3 of the License, or (at your
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
12 ### option) any later version.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
13 ###
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
14 ### Pytave is distributed in the hope that it will be useful, but WITHOUT
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
15 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
16 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
17 ### for more details.
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
18 ###
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
19 ### You should have received a copy of the GNU General Public License
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
20 ### along with Pytave; see the file COPYING. If not, see
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
21 ### <http://www.gnu.org/licenses/>.
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
22
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
23 AC_PREREQ(2.61)
152
313932d566c9 doc: Update project URL and repository location
Mike Miller <mtmiller@octave.org>
parents: 150
diff changeset
24 AC_INIT(pytave, dev, [[https://bitbucket.org/mtmiller/pytave/issues]])
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
25
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
26 # Some important programs.
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
27 AC_LANG(C++)
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
28 AC_PROG_CXX
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
29 AC_PROG_CPP
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
30 AC_PROG_CC
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
31
390
4ba06dcadecd build: move auxiliary build scripts to build-aux directory
Mike Miller <mtmiller@octave.org>
parents: 389
diff changeset
32 AC_CONFIG_AUX_DIR([build-aux])
4ba06dcadecd build: move auxiliary build scripts to build-aux directory
Mike Miller <mtmiller@octave.org>
parents: 389
diff changeset
33 AC_CONFIG_MACRO_DIR([m4])
389
d4061763a56b Delete and no longer build Python extension module
Mike Miller <mtmiller@octave.org>
parents: 196
diff changeset
34 AC_CONFIG_SRCDIR([oct-py-eval.cc])
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
35 AC_CONFIG_HEADER([config.h])
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
36 AC_CONFIG_FILES([Makefile])
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
37
85
891ec70aede9 Clearer description of what packages that are missing.
David <david@stacey>
parents: 83
diff changeset
38 # Find Octave
166
f9a4cc5c64bd configure: simplify handling of missing dependencies
Mike Miller <mtmiller@octave.org>
parents: 159
diff changeset
39 AX_OCTAVE([OCTAVE_CONFIG], [],
f9a4cc5c64bd configure: simplify handling of missing dependencies
Mike Miller <mtmiller@octave.org>
parents: 159
diff changeset
40 [AC_MSG_FAILURE([unable to find Octave development files])])
196
43e92dd60dd0 build: include new <octave/call-stack.h> header if available
Mike Miller <mtmiller@octave.org>
parents: 166
diff changeset
41 pytave_save_CPPFLAGS=$CPPFLAGS
43e92dd60dd0 build: include new <octave/call-stack.h> header if available
Mike Miller <mtmiller@octave.org>
parents: 166
diff changeset
42 CPPFLAGS=$OCTAVE_CPPFLAGS
43e92dd60dd0 build: include new <octave/call-stack.h> header if available
Mike Miller <mtmiller@octave.org>
parents: 166
diff changeset
43 CPPFLAGS=$pytave_save_CPPFLAGS
37
798efee55cd0 Added --enable-float-matrices option. Some VPATH building issues fixed. Changelog now more standardized.
David Grundberg <individ@acc.umu.se>
parents: 30
diff changeset
44
798efee55cd0 Added --enable-float-matrices option. Some VPATH building issues fixed. Changelog now more standardized.
David Grundberg <individ@acc.umu.se>
parents: 30
diff changeset
45 # Pick a Python library to use
155
5cfff4925d14 build: Import latest versions of m4 macros from autoconf-archive
Mike Miller <mtmiller@octave.org>
parents: 154
diff changeset
46 AX_PYTHON_DEVEL
417
4e427ec1650a build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
47 for opt in $PYTHON_LIBS; do
4e427ec1650a build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
48 case "$opt" in #(
4e427ec1650a build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
49 -L/usr*) : ;; #(
4e427ec1650a build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
50 -L*) PYTHON_LIBS="-R${opt#-L} $PYTHON_LIBS" ;; #(
4e427ec1650a build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
51 *) : ;;
4e427ec1650a build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
52 esac
4e427ec1650a build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents: 416
diff changeset
53 done
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
54
159
a323f9fae46b doc: Reformat INSTALL and README in Markdown
Mike Miller <mtmiller@octave.org>
parents: 157
diff changeset
55 AM_INIT_AUTOMAKE([foreign -Wno-portability])
157
5cf3cd041b1c build: Silence warnings from latest autotools
Mike Miller <mtmiller@octave.org>
parents: 155
diff changeset
56 LT_INIT
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
57
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
58 # Checks for typedefs, structures, and compiler characteristics.
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
59 AC_HEADER_STDBOOL
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
60 AC_C_CONST
72
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
61 AC_C_INLINE
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
62 AC_TYPE_INT8_T
72
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
63 AC_TYPE_INT16_T
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
64 AC_TYPE_INT32_T
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
65 AC_TYPE_INT64_T
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
66 AC_TYPE_SIZE_T
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
67 AC_TYPE_UINT8_T
72
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
68 AC_TYPE_UINT16_T
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
69 AC_TYPE_UINT32_T
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
70 AC_TYPE_UINT64_T
0
4da14cce0890 First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff changeset
71
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
72 AC_OUTPUT
72
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
73
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
74 AC_MSG_NOTICE([
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
75 ========================================================================
149
6d9b4f69da66 Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents: 137
diff changeset
76 Pytave is configured with the following setup
72
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
77
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
78 Dependencies
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
79 Octave ............. $OCTAVE_INCLUDEDIR
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
80 Python ............. $PYTHON_CPPFLAGS
166
f9a4cc5c64bd configure: simplify handling of missing dependencies
Mike Miller <mtmiller@octave.org>
parents: 159
diff changeset
81 library .......... $PYTHON_LIBS
72
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
82 executable ....... $PYTHON
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
83
e9834fd34416 Fix lp:368487.
David Grundberg <individ@acc.umu.se>
parents: 70
diff changeset
84 ========================================================================])