aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-07-22 07:19:31 +0200
committerChristoph Hellwig <hch@lst.de>2010-07-22 07:19:31 +0200
commite8b7c4f54a2ce109ba7557aa0a10d4876ee3860b (patch)
tree041ffd03a46d53cd1278dcba9f35fb6088963d4a
parent14eafbb1943fe3a9ad2cf2fd45c4c39026c4c933 (diff)
downloadxfsdump-dev-e8b7c4f54a2ce109ba7557aa0a10d4876ee3860b.tar.gz
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 xfsdump won't build for that case with rpath errors, and wouldn't install correctly either. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reported-by: Christian Kujau <lists@nerdbynature.de> Tested-by: Christian Kujau <lists@nerdbynature.de>
-rw-r--r--configure.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 05a9aa24..99ed2e07 100644
--- a/configure.in
+++ b/configure.in
@@ -41,12 +41,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