From 3572bd2f1ad7dce0ee287205717826f41d57b9c5 Mon Sep 17 00:00:00 2001 From: Nathan Graybeal <79175064+ngraybeal@users.noreply.github.com> Date: Fri, 4 Oct 2024 02:08:44 -0700 Subject: [PATCH] Fix configure inserting absolute paths for Python and Perl (#5504) (#5505) * Migrate all tools to AC_CHECK_PROG --- configure.ac | 8 ++++---- docs/CONTRIBUTORS | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 1a8206609..94a2b9a38 100644 --- a/configure.ac +++ b/configure.ac @@ -190,26 +190,26 @@ if test "x$AR" = "x" ; then AC_MSG_ERROR([Cannot find "ar" in your PATH, please install it]) fi -AC_PATH_PROG(PERL,perl) +AC_CHECK_PROG(PERL,perl,perl) if test "x$PERL" = "x" ; then AC_MSG_ERROR([Cannot find "perl" in your PATH, please install it]) fi -AC_PATH_PROG(PYTHON3,python3) +AC_CHECK_PROG(PYTHON3,python3,python3) if test "x$PYTHON3" = "x" ; then AC_MSG_ERROR([Cannot find "python3" in your PATH, please install it]) fi python3_version=$($PYTHON3 --version | head -1) AC_MSG_RESULT([$PYTHON3 --version = $python3_version]) -AC_PATH_PROG(LEX,flex) +AC_CHECK_PROG(LEX,flex,flex) if test "x$LEX" = "x" ; then AC_MSG_ERROR([Cannot find "flex" in your PATH, please install it]) fi flex_version=$($LEX --version | head -1) AC_MSG_RESULT([$LEX --version = $flex_version]) -AC_PATH_PROG(YACC,bison) +AC_CHECK_PROG(YACC,bison,bison) if test "x$YACC" = "x" ; then AC_MSG_ERROR([Cannot find "bison" in your PATH, please install it]) fi diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index 676b8c946..3796eae1f 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -150,6 +150,7 @@ Mladen Slijepcevic Morten Borup Petersen Mostafa Gamal Nandu Raj +Nathan Graybeal Nathan Kohagen Nathan Myers Nolan Poe