From 267c3778366d1eb1b533c0472894a6ccf4dc5409 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 22 Mar 2019 12:34:11 -0400 Subject: configure.ac, Makefile.am: Find readelf instead of ldd --- (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9c9d038..0beab1e 100644 --- a/configure.ac +++ b/configure.ac @@ -50,25 +50,25 @@ AC_ARG_WITH( ) AC_ARG_WITH( - [ldd], - [AS_HELP_STRING([--with-ldd=PATH], [path to ldd])], + [readelf], + [AS_HELP_STRING([--with-readelf=PATH], [path to readelf])], [ case "${withval}" in 'yes'|'') - AC_MSG_ERROR([--with-ldd requires an argument]) + AC_MSG_ERROR([--with-readelf requires an argument]) ;; 'no') - AC_MSG_ERROR([ldd is required]) + AC_MSG_ERROR([readelf is required]) ;; *) - LDD="${withval}" + READELF="${withval}" ;; esac ], [ - AC_PATH_PROG([LDD], [ldd]) - if test -z "${LDD}"; then - AC_MSG_ERROR([ldd not found]) + AC_PATH_PROG([READELF], [readelf]) + if test -z "${READELF}"; then + AC_MSG_ERROR([readelf not found]) fi ] ) @@ -143,7 +143,7 @@ AC_ARG_WITH( ) AC_SUBST([SH]) -AC_SUBST([LDD]) +AC_SUBST([READELF]) AC_SUBST([OPKG]) AC_SUBST([multiarch_libdir]) AC_SUBST([helperdir]) -- cgit v0.9.1