From 2ccb8cf0927df9ca8a2e018ff453d18693a30b38 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 22 Jul 2010 07:18:33 +0200 Subject: [PATCH] fix configure --prefix We need to substitute root_sbindir and root_libdir even for the case where we don't have the different from the default prefix, otherwise xfsprogs won't build for that case with rpath errors, and wouldn't install correctly either. Signed-off-by: Christoph Hellwig Reviewed-by: Alex Elder Reported-by: Christian Kujau Tested-by: Christian Kujau --- configure.in | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index dc811e2bf..30907deac 100644 --- a/configure.in +++ b/configure.in @@ -65,12 +65,17 @@ esac case $exec_prefix:$prefix in NONE:NONE | NONE:/usr | /usr:*) root_sbindir='/sbin' - AC_SUBST([root_sbindir]) - root_libdir="/${base_libdir}" - AC_SUBST([root_libdir]) + ;; +*) + root_sbindir="${sbindir}" + root_libdir="${libdir}" + ;; esac +AC_SUBST([root_sbindir]) +AC_SUBST([root_libdir]) + # Find localized files LOCALIZED_FILES="" for lfile in `find ${srcdir} -name '*.c' -type f || exit 1`; do -- 2.47.2