From 302d537423c0bf2429bd6691a775319c0dec0c10 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 19 May 2018 11:24:33 +0200 Subject: configure: replace AC_TRY_RUN with CURL_RUN_IFELSE ... and export LD_LIBRARY_PATH properly. This is a follow-up from 2d4c215. Fixes #2586 Reported-by: Bernhard Walle --- m4/curl-functions.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 1bbde9ed5..49b4c7932 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -7020,7 +7020,8 @@ AC_DEFUN([CURL_RUN_IFELSE], [ AC_REQUIRE([AC_RUN_IFELSE])dnl old=$LD_LIBRARY_PATH - LD_LIBRARY_PATH=$CURL_LIBRARY_PATH + LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old + export LD_LIBRARY_PATH AC_RUN_IFELSE([AC_LANG_SOURCE([$1])], $2, $3, $4) LD_LIBRARY_PATH=$old # restore ]) -- cgit v1.2.3