]> git.cworth.org Git - notmuch/commit
configure: check for links to/from libdir in ldconfig output
authorDavid Bremner <david@tethera.net>
Wed, 30 May 2018 02:03:17 +0000 (19:03 -0700)
committerDavid Bremner <david@tethera.net>
Thu, 31 May 2018 11:14:47 +0000 (08:14 -0300)
commitb71fa262b54398399821e89d01d984f46e24d2e8
treec5ffbb30e4bef05e9dbbfdd90259c6ecb3140712
parent2f59498d6905a80de5342362e0822d9295b4bf78
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.
configure