commit 14ec6426213c78e01c530f53215eea9e8c19cc06
Author: Dan Gildea <dgildea>
Date:   Sat Dec 1 08:10:27 2018 -0500

    respect ./configure --with-perl=/bin/perl

diff --git a/Changes b/Changes
index 36058a2..21986b4 100644
--- a/Changes
+++ b/Changes
@@ -112,6 +112,7 @@
 # A more detailed log history can be found within the particular files, near
 # the top.
 #
+#		- respect ./configure --with-perl=/bin/perl
 #		- fallback for unknown column types, such as those
 #		  introduced by \newcolumntype.
 #		  https://bugs.debian.org/899306
diff --git a/config/config.pl b/config/config.pl
index 2c0c4b9..0fc8cda 100755
--- a/config/config.pl
+++ b/config/config.pl
@@ -619,7 +619,11 @@ my $extrapath = $opt{EXTRAPATH} || $prefs{EXTRAPATH} || '';
 
 # only perl gets an absolute pathname
 my $abs_path_names = 1;
-$newcfg{'PERL'} = &find_prog($^X); # take the perl internal executable name
+if($opt{'PERL'}) {
+  $newcfg{'PERL'} = &find_prog(&get_name('PERL',1));
+} else {
+  $newcfg{'PERL'} = &find_prog($^X); # take the perl internal executable name
+}
 &checking('perl version');
 &result($]);
 
diff --git a/configure b/configure
index 4a43d1e..4e9e75f 100755
--- a/configure
+++ b/configure
@@ -1219,6 +1219,7 @@ interpval="$ac_cv_sys_interpreter"
 echo "launching proprietary configuration..."
 
 $PERL $srcdir/config/config.pl \
+  PERL=$PERL \
   HASHBANG=$ac_cv_sys_interpreter \
   OLDCONFIG=$with_oldconfig \
   EXTRAPATH=$with_extrapath \
