From 4738472b70b227d3df49d3d4efc3c72c2a058fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Thu, 21 Sep 2023 22:30:10 +0200 Subject: [PATCH] configure: Add check for presence of readelf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we're now using $READELF in the libxdp Makefile, we should make sure the utility is present (and the variable set), or we may get weird 'make' errors. Signed-off-by: Toke Høiland-Jørgensen --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index fc0874c9..6ee7229b 100755 --- a/configure +++ b/configure @@ -66,12 +66,13 @@ check_toolchain() : ${M4=m4} : ${EMACS=emacs} : ${BPFTOOL=bpftool} + : ${READELF=readelf} : ${ARCH_INCLUDES=} CLANG=$(find_tool clang "$CLANG") LLC=$(find_tool llc "$LLC") - for TOOL in $PKG_CONFIG $CC $LD $OBJCOPY $CLANG $LLC $M4 $BPFTOOL; do + for TOOL in $PKG_CONFIG $CC $LD $OBJCOPY $CLANG $LLC $M4 $BPFTOOL $READELF; do if [ ! $(command -v ${TOOL} 2>/dev/null) ]; then echo "*** ERROR: Cannot find tool ${TOOL}" ; exit 1; @@ -134,6 +135,7 @@ check_toolchain() echo "EMACS:=${EMACS}" >>$CONFIG echo "ARCH_INCLUDES:=$ARCH_INCLUDES" >> $CONFIG echo "BPFTOOL:=${BPFTOOL}" >> $CONFIG + echo "READELF:=${READELF}" >> $CONFIG } check_zlib()