]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: fix double prefix with explict --libdir
authorChristoph Junghans <ottxor@gentoo.org>
Fri, 1 Aug 2014 17:37:08 +0000 (11:37 -0600)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Aug 2014 11:27:02 +0000 (13:27 +0200)
* with configure --prefix=$HOME --libdir=$HOME usrlib_execdir
  ends up being ${exec_prefix}/${libbir}, which is double-prefixed

* fix: use explict given ${libbir} if is matches ${prefix}/*

Signed-off-by: Christoph Junghans <ottxor@gentoo.org>
configure.ac

index aae2456d59ede6dffd5e3db895c958d9f50075f0..3eca73e2f159b1c38495e3035aed2102a7f999d2 100644 (file)
@@ -80,7 +80,7 @@ usrsbin_execdir='${exec_prefix}/sbin'
 AC_SUBST([usrsbin_execdir])
 
 AS_CASE([$libdir],
- ['${exec_prefix}/'* | '${prefix}/'* | /usr/*],
+ ['${exec_prefix}/'* | '${prefix}/'* | /usr/* | "${prefix}"/* ],
    [usrlib_execdir=$libdir],
  [usrlib_execdir='${exec_prefix}'$libdir]
 )