Skip to content

Commit

Permalink
Use correct target path for Flex check
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Sep 1, 2022
1 parent 572f9a2 commit 30b3222
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -627,16 +627,14 @@ AC_PROG_LEX(noyywrap)
# required for developers, we decided that it really was not worth it
# to be portable between different versions of lex ;-).

if test -z "$LEX" || \
test -n "`echo $LEX | $GREP missing`" || \
test "`basename $LEX`" != "flex"; then
if test ! -f "$srcdir/src/util/show_help_lex.c"; then
AC_MSG_WARN([*** Could not find Flex on your system.])
AC_MSG_WARN([*** Flex is required for developer builds of PRTE.])
AC_MSG_WARN([*** Other versions of Lex are not supported.])
AC_MSG_WARN([*** NOTE: If you are building from a tarball downloaded from the PRTE web site, you do not need Flex.])
AC_MSG_ERROR([Cannot continue])
fi
if test "x$LEX" != xflex && test ! -e $PRTE_TOP_SRCDIR/src/util/hostfile/hostfile_lex.c; then
AC_MSG_WARN([*** Could not find Flex on your system.])
AC_MSG_WARN([*** Flex is required for developer builds of PRRTE.])
AC_MSG_WARN([*** Other versions of Lex are not supported.])
AC_MSG_WARN([*** NOTE: If you are building from an official tarball])
AC_MSG_WARN([*** (not the ones made by GitHub!) downloaded from the])
AC_MSG_WARN([*** PRRTE web site, you do not need Flex.])
AC_MSG_ERROR([Cannot continue])
fi

#
Expand Down

0 comments on commit 30b3222

Please sign in to comment.