Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorMichael Veksler <Mihails.Vekslers@zabbix.com>2019-11-21 19:26:14 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2019-11-21 19:26:14 +0300
commit022175ca9dc869b3568567916928225a29024c9e (patch)
tree520f7deb3ccf60a8695a7f03f4b39befde11286d /m4
parent6027178f791347c7e32964bf99f685a6dcb548eb (diff)
....I..... [DEV-1343] m4 libcurl code layout improvements
Diffstat (limited to 'm4')
-rw-r--r--m4/libcurl.m441
1 files changed, 20 insertions, 21 deletions
diff --git a/m4/libcurl.m4 b/m4/libcurl.m4
index 904dbf6131c..f10e6721d60 100644
--- a/m4/libcurl.m4
+++ b/m4/libcurl.m4
@@ -148,27 +148,26 @@ AC_HELP_STRING([--with-libcurl@<:@=DIR@:>@],[use cURL package @<:@default=no@:>@
-l*)
_lib_name=`echo "$i" | cut -b3-`
AC_CHECK_LIB($_lib_name , main,[
- if test "x$enable_static_libs" = "xyes"; then
- case $i in
- -lssl|-lcrypto)
- test "x$want_openssl" = "xyes" && i="$OPENSSL_LIBS"
- ;;
- -lldap|-lldap_r|-llber)
- test "x$want_ldap" = "xyes" && i="$LDAP_LIBS"
- ;;
- -lssl_a|-lcrypto_a)
- test "x$want_openssl" = "xyes" && i="$OPENSSL_LIBS"
- ;;
- -lldap_a|-lldap_r_a|-llber_a)
- test "x$want_ldap" = "xyes" && i="$LDAP_LIBS"
- ;;
- esac
- fi
- test -z "${LIBCURL_LIBS##*$i*}" || LIBCURL_LIBS="$LIBCURL_LIBS $i"
- ],[
- AC_MSG_ERROR([static library $_lib_name required for linking libcurl not found])
- ])
-
+ if test "x$enable_static_libs" = "xyes"; then
+ case $i in
+ -lssl|-lcrypto)
+ test "x$want_openssl" = "xyes" && i="$OPENSSL_LIBS"
+ ;;
+ -lldap|-lldap_r|-llber)
+ test "x$want_ldap" = "xyes" && i="$LDAP_LIBS"
+ ;;
+ -lssl_a|-lcrypto_a)
+ test "x$want_openssl" = "xyes" && i="$OPENSSL_LIBS"
+ ;;
+ -lldap_a|-lldap_r_a|-llber_a)
+ test "x$want_ldap" = "xyes" && i="$LDAP_LIBS"
+ ;;
+ esac
+ fi
+ test -z "${LIBCURL_LIBS##*$i*}" || LIBCURL_LIBS="$LIBCURL_LIBS $i"
+ ],[
+ AC_MSG_ERROR([static library $_lib_name required for linking libcurl not found])
+ ])
;;
esac
done