summaryrefslogtreecommitdiff
path: root/finance/quickfix/files/patch-m4_ax__python.m4
diff options
context:
space:
mode:
authorKoichiro Iwao <meta@FreeBSD.org>2019-06-20 04:34:10 +0000
committerKoichiro Iwao <meta@FreeBSD.org>2019-06-20 04:34:10 +0000
commitcd999a0cf7daf4eec9678ba418577450cac0e186 (patch)
tree717e10eff6651a040bc0f5385cc1bed49c40f1f5 /finance/quickfix/files/patch-m4_ax__python.m4
parentdevel/folly: Update 2019.06.10.00 -> 2019.06.17.00 (diff)
finance/quickfix: Update to 1.15.1
- Remove MAKE_JOBS_UNSAFE as it build paralelly now - Switch to GitHub PR: 238569 Submitted by: m.tsatsenko@gmail.com (maintainer)
Diffstat (limited to '')
-rw-r--r--finance/quickfix/files/patch-m4_ax__python.m443
1 files changed, 43 insertions, 0 deletions
diff --git a/finance/quickfix/files/patch-m4_ax__python.m4 b/finance/quickfix/files/patch-m4_ax__python.m4
new file mode 100644
index 000000000000..8e3dbc397632
--- /dev/null
+++ b/finance/quickfix/files/patch-m4_ax__python.m4
@@ -0,0 +1,43 @@
+--- m4/ax_python.m4.orig 2018-04-16 02:40:31 UTC
++++ m4/ax_python.m4
+@@ -18,10 +18,13 @@ AC_ARG_WITH(python2,
+ has_python3=false
+ AC_ARG_WITH(python3,
+ [ --with-python3 will use $PYTHON to find python],
+- [
++ [if test $withval == "no"
++ then
++ has_python3=false
++ else
+ has_python=true
+ has_python3=true
+- ],
++ fi],
+ has_python3=false
+ )
+
+@@ -44,20 +47,20 @@ AC_SUBST(PYTHON3_PREFIX)
+
+ if test $has_python2 = true
+ then
+- PYTHON2_INCLUDE_PATH=[`python2 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
++ PYTHON2_INCLUDE_PATH=[`python2.7 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
+ PYTHON2_CFLAGS="-I${PYTHON2_INCLUDE_PATH}"
+ AC_SUBST(PYTHON2_CFLAGS)
+- PYTHON2_SITE_PACKAGES=[`python2 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
++ PYTHON2_SITE_PACKAGES=[`python2.7 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
+ AC_SUBST(PYTHON2_SITE_PACKAGES)
+ AC_DEFINE(HAVE_PYTHON2, 1, Define if you have python2)
+ fi
+
+ if test $has_python3 = true
+ then
+- PYTHON3_INCLUDE_PATH=[`python3 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
++ PYTHON3_INCLUDE_PATH=[`python3.6 -c 'from distutils import sysconfig; print( sysconfig.get_python_inc(1) )'`]
+ PYTHON3_CFLAGS="-I${PYTHON3_INCLUDE_PATH}"
+ AC_SUBST(PYTHON3_CFLAGS)
+- PYTHON3_SITE_PACKAGES=[`python3 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
++ PYTHON3_SITE_PACKAGES=[`python3.6 -c 'from distutils import sysconfig; print( sysconfig.get_python_lib(1) )'`]
+ AC_SUBST(PYTHON3_SITE_PACKAGES)
+ AC_DEFINE(HAVE_PYTHON3, 1, Define if you have python3)
+ fi