]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: check for flex in autogen.sh
authorKarel Zak <kzak@redhat.com>
Thu, 31 Aug 2023 11:55:16 +0000 (13:55 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 20 Nov 2023 21:25:46 +0000 (22:25 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
autogen.sh

index 1ccfc6c85ac239066b0a3cb5a8b3a412a1927708..833f90415f5c51c3351d7c196b1fd1ae082ae82d 100755 (executable)
@@ -73,6 +73,9 @@ test -f sys-utils/mount.c ||
 [ -x "$(command -v gettext)" -o -x "$(command -v xgettext)" ] ||
        warn_mesg "You need have [x]gettext binary installed to update po/ stuff."
 
+(flex --version) < /dev/null > /dev/null 2>&1 ||
+       error_mesg "You must have flex installed to build the util-linux."
+
 if ! (bison --version) < /dev/null > /dev/null 2>&1; then
        error_mesg "You must have bison installed to build the util-linux."
 else
@@ -86,6 +89,7 @@ else
        esac
 fi
 
+
 LIBTOOLIZE=libtoolize
 case `uname` in Darwin*) LIBTOOLIZE=glibtoolize ;; esac
 if ! ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1; then
@@ -112,6 +116,7 @@ echo "   autoconf:   $(autoconf --version | head -1)"
 echo "   autoheader: $(autoheader --version | head -1)"
 echo "   automake:   $(automake --version | head -1)"
 echo "   libtoolize: $($LIBTOOLIZE --version | head -1)"
+echo "   flex:       $(flex --version | head -1)"
 echo "   bison:      $(bison --version | head -1)"
 echo