]> git.proxmox.com Git - swtpm.git/commitdiff
build: search for nonstandard libtpms locations using LIBRARY_PATH
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 6 Dec 2016 20:45:51 +0000 (15:45 -0500)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 6 Dec 2016 20:46:31 +0000 (15:46 -0500)
Allow setting the LIBRARY_PATH variable when running configure so
that we can find libtpms in non-standard locations.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
configure.ac

index 12c7532c29cdada6d31207f19a0d2e22cc00a744..4f30f63966636fa1eb3a103c6fc79a54255d065c 100644 (file)
@@ -352,7 +352,7 @@ AC_MSG_CHECKING([the crypto library libtpms is using])
 dirs=$($CC $CFLAGS -Xlinker --verbose 2>/dev/null | \
        sed -n '/SEARCH_DIR/p' | \
        sed 's/SEARCH_DIR("=\?\(@<:@^"@:>@\+\)"); */\1\n/g')
-for dir in $dirs; do
+for dir in $dirs $LIBRARY_PATH; do
   if test -r $dir/libtpms.so; then
     if test -n "`ldd $dir/libtpms.so | grep libcrypto.so`"; then
       libtpms_cryptolib="openssl"