diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-08-21 21:15:07 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-08-21 21:15:07 +0000 |
commit | 8882d1fa1b6eda45414265b3ed5f0c2affbf6ba2 (patch) | |
tree | 663c67db384c4b617d4773d9310c27e944f82434 | |
parent | 0c37ab52553c1c7640d0a45dafadb718791a9c6f (diff) |
avoid adding a blank dir to the LD_LIBRARY_PATH when OpenSSL is found in a
default dir
-rw-r--r-- | configure.ac | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 32c111cdf..64a5b0a03 100644 --- a/configure.ac +++ b/configure.ac @@ -930,12 +930,15 @@ if test X"$OPT_SSL" != Xno; then fi if test "$OPENSSL_ENABLED" = "1"; then - dnl when the ssl shared libs were found in a path that the run-time linker - dnl doesn't search through, we need to add it to LD_LIBRARY_PATH to - dnl prevent further configure tests to fail due to this - LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL" - export LD_LIBRARY_PATH - AC_MSG_NOTICE([Added $LIB_OPENSSL to LD_LIBRARY_PATH]) + if test -n "$LIB_OPENSSL"; then + dnl when the ssl shared libs were found in a path that the run-time + dnl linker doesn't search through, we need to add it to LD_LIBRARY_PATH + dnl to prevent further configure tests to fail due to this + + LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL" + export LD_LIBRARY_PATH + AC_MSG_NOTICE([Added $LIB_OPENSSL to LD_LIBRARY_PATH]) + fi fi fi |