mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
configure: check for links to/from libdir in ldconfig output
If e.g. /lib is a link to /usr/lib, then the latter may not show up in the way we expect in the output of ldconfig. 'test foo -ef bar' checks if foo and bar have the same device and inode numbers. Since (at least in bash, dash, ksh, and zsh) the shell dereferences symlinks before applying the test, this includes both the case where file1 is equal to file2 and the case where one is a symlink to the other.
This commit is contained in:
parent
2f59498d69
commit
b71fa262b5
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -715,7 +715,7 @@ elif [ $uname = "Linux" ] || [ $uname = "GNU" ] ; then
|
|||
IFS="
|
||||
"
|
||||
for path in $ldconfig_paths; do
|
||||
if [ "$path" = "$libdir_expanded" ]; then
|
||||
if [ "$path" -ef "$libdir_expanded" ]; then
|
||||
libdir_in_ldconfig=1
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue