mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
configure: fix reference to possibly undefined $PKG_CONFIG_PATH
In case zlib not found by pkg-config(1) the pkg-config information
is resolved by attempting to print ZLIB_VERSION from from zlib
installation if it exists anyway.
If above done successfully compat/zlib.pc is written for forthcoming
pkg-config execution.
Since `set -u` is in effect (since 124a67e96
, 2016-05-06),
expanding unset $PKG_CONFIG_PATH (would have) failed whenever tried.
Now it is changed to set as "$PKG_CONFIG_PATH:compat" if PKG_CONFIG_PATH
is set and is non-empty string, plain "compat" otherwise.
This commit is contained in:
parent
e712b91f46
commit
eb1f799892
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -604,7 +604,7 @@ fi
|
||||||
if ! pkg-config --exists zlib; then
|
if ! pkg-config --exists zlib; then
|
||||||
${CC} -o compat/gen_zlib_pc "$srcdir"/compat/gen_zlib_pc.c >/dev/null 2>&1 &&
|
${CC} -o compat/gen_zlib_pc "$srcdir"/compat/gen_zlib_pc.c >/dev/null 2>&1 &&
|
||||||
compat/gen_zlib_pc > compat/zlib.pc &&
|
compat/gen_zlib_pc > compat/zlib.pc &&
|
||||||
PKG_CONFIG_PATH="$PKG_CONFIG_PATH":compat &&
|
PKG_CONFIG_PATH=${PKG_CONFIG_PATH:+$PKG_CONFIG_PATH:}compat &&
|
||||||
export PKG_CONFIG_PATH
|
export PKG_CONFIG_PATH
|
||||||
rm -f compat/gen_zlib_pc
|
rm -f compat/gen_zlib_pc
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue