Skip to content

Commit d878cc4

Browse files
committedApr 8, 2020
added overlay support
1 parent da3f34e commit d878cc4

File tree

116 files changed

+18362
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+18362
-325
lines changed
 

‎.autoconf/ax_python.m4

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# ===========================================================================
2+
# https://www.gnu.org/software/autoconf-archive/ax_python.html
3+
# ===========================================================================
4+
#
5+
# SYNOPSIS
6+
#
7+
# AX_PYTHON
8+
#
9+
# DESCRIPTION
10+
#
11+
# This macro does a complete Python development environment check.
12+
#
13+
# It checks for all known versions. When it finds an executable, it looks
14+
# to find the header files and library.
15+
#
16+
# It sets PYTHON_BIN to the name of the python executable,
17+
# PYTHON_INCLUDE_DIR to the directory holding the header files, and
18+
# PYTHON_LIB to the name of the Python library.
19+
#
20+
# This macro calls AC_SUBST on PYTHON_BIN (via AC_CHECK_PROG),
21+
# PYTHON_INCLUDE_DIR and PYTHON_LIB.
22+
#
23+
# LICENSE
24+
#
25+
# Copyright (c) 2008 Michael Tindal
26+
#
27+
# This program is free software; you can redistribute it and/or modify it
28+
# under the terms of the GNU General Public License as published by the
29+
# Free Software Foundation; either version 2 of the License, or (at your
30+
# option) any later version.
31+
#
32+
# This program is distributed in the hope that it will be useful, but
33+
# WITHOUT ANY WARRANTY; without even the implied warranty of
34+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
35+
# Public License for more details.
36+
#
37+
# You should have received a copy of the GNU General Public License along
38+
# with this program. If not, see <https://www.gnu.org/licenses/>.
39+
#
40+
# As a special exception, the respective Autoconf Macro's copyright owner
41+
# gives unlimited permission to copy, distribute and modify the configure
42+
# scripts that are the output of Autoconf when processing the Macro. You
43+
# need not follow the terms of the GNU General Public License when using
44+
# or distributing such scripts, even though portions of the text of the
45+
# Macro appear in them. The GNU General Public License (GPL) does govern
46+
# all other use of the material that constitutes the Autoconf Macro.
47+
#
48+
# This special exception to the GPL applies to versions of the Autoconf
49+
# Macro released by the Autoconf Archive. When you make and distribute a
50+
# modified version of the Autoconf Macro, you may extend this special
51+
# exception to the GPL to apply to your modified version as well.
52+
53+
#serial 18
54+
55+
AC_DEFUN([AX_PYTHON],
56+
[AC_MSG_CHECKING(for python build information)
57+
AC_MSG_RESULT([])
58+
for python in python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
59+
AC_CHECK_PROGS(PYTHON_BIN, [$python])
60+
ax_python_bin=$PYTHON_BIN
61+
if test x$ax_python_bin != x; then
62+
AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
63+
if test x$ax_python_lib == xno; then
64+
AC_CHECK_LIB(${ax_python_bin}m, main, ax_python_lib=${ax_python_bin}m, ax_python_lib=no)
65+
fi
66+
if test x$ax_python_lib != xno; then
67+
ax_python_header=`$ax_python_bin -c "from distutils.sysconfig import *; print(get_config_var('CONFINCLUDEPY'))"`
68+
if test x$ax_python_header != x; then
69+
break;
70+
fi
71+
fi
72+
fi
73+
done
74+
if test x$ax_python_bin = x; then
75+
ax_python_bin=no
76+
fi
77+
if test x$ax_python_header = x; then
78+
ax_python_header=no
79+
fi
80+
if test x$ax_python_lib = x; then
81+
ax_python_lib=no
82+
fi
83+
84+
AC_MSG_RESULT([ results of the Python check:])
85+
AC_MSG_RESULT([ Binary: $ax_python_bin])
86+
AC_MSG_RESULT([ Library: $ax_python_lib])
87+
AC_MSG_RESULT([ Include Dir: $ax_python_header])
88+
89+
if test x$ax_python_header != xno; then
90+
PYTHON_INCLUDE_DIR=$ax_python_header
91+
AC_SUBST(PYTHON_INCLUDE_DIR)
92+
fi
93+
if test x$ax_python_lib != xno; then
94+
PYTHON_LIB=$ax_python_lib
95+
AC_SUBST(PYTHON_LIB)
96+
fi
97+
])dnl

‎.autoconf/ax_require_defined.m4

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ===========================================================================
2+
# https://www.gnu.org/software/autoconf-archive/ax_require_defined.html
3+
# ===========================================================================
4+
#
5+
# SYNOPSIS
6+
#
7+
# AX_REQUIRE_DEFINED(MACRO)
8+
#
9+
# DESCRIPTION
10+
#
11+
# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
12+
# been defined and thus are available for use. This avoids random issues
13+
# where a macro isn't expanded. Instead the configure script emits a
14+
# non-fatal:
15+
#
16+
# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
17+
#
18+
# It's like AC_REQUIRE except it doesn't expand the required macro.
19+
#
20+
# Here's an example:
21+
#
22+
# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
23+
#
24+
# LICENSE
25+
#
26+
# Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
27+
#
28+
# Copying and distribution of this file, with or without modification, are
29+
# permitted in any medium without royalty provided the copyright notice
30+
# and this notice are preserved. This file is offered as-is, without any
31+
# warranty.
32+
33+
#serial 2
34+
35+
AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
36+
m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
37+
])dnl AX_REQUIRE_DEFINED
38+

0 commit comments

Comments
 (0)
Please sign in to comment.