mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-02 23:01:43 +01:00
configure: really expand libdir_expanded
It turns out that if people really use configure in autotools style and pass libdir containing '${prefix}/foo' then the ldconfig previously failed. This uses sed for portability (versus bash parameter expansion with substitution) and hopefully a bit more robustness than blindly parameter expanding the string.
This commit is contained in:
parent
a4eabfd1b7
commit
3c6b2d5071
1 changed files with 6 additions and 1 deletions
7
configure
vendored
7
configure
vendored
|
@ -236,7 +236,12 @@ done
|
||||||
# Makefile.config file later like most values), because we need to
|
# Makefile.config file later like most values), because we need to
|
||||||
# actually investigate this value compared to the ldconfig_paths value
|
# actually investigate this value compared to the ldconfig_paths value
|
||||||
# below.
|
# below.
|
||||||
libdir_expanded=${LIBDIR:-${PREFIX}/lib}
|
if [ -z "$LIBDIR" ] ; then
|
||||||
|
libdir_expanded="${PREFIX}/lib"
|
||||||
|
else
|
||||||
|
# very non-general variable expansion
|
||||||
|
libdir_expanded=`echo "$LIBDIR" | sed "s|\\${prefix}|${PREFIX}|g; s|\\$prefix/|${PREFIX}/|; s|//*|/|g"`
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
Welcome to Notmuch, a system for indexing, searching and tagging your email.
|
Welcome to Notmuch, a system for indexing, searching and tagging your email.
|
||||||
|
|
Loading…
Reference in a new issue