From fbc60f1f3f6a46cf17ca9c17dc55eb551eae4af5 Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@symas.com>
Date: Tue, 28 Apr 2020 20:16:40 +0000
Subject: [PATCH] Fix #696 - Find python as part of the configure process
 instead of hard coding it.

---
 configure.ac         | 1 +
 lib/wind/Makefile.am | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 29709561b6..68434d1a33 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,7 @@ dnl Checks for programs.
 AC_PROG_CC
 AM_PROG_CC_C_O
 AC_PROG_CPP
+AM_PATH_PYTHON
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
diff --git a/lib/wind/Makefile.am b/lib/wind/Makefile.am
index 0b493118b3..4a34496fcf 100644
--- a/lib/wind/Makefile.am
+++ b/lib/wind/Makefile.am
@@ -89,8 +89,6 @@ idn_lookup_SOURCES = idn-lookup.c
 
 LDADD = libwind.la $(LIB_roken)
 
-PYTHON = python
-
 if !MAINTAINER_MODE
 skip_python = test -f $@ ||
 endif
