autotools: check for snprintf and vsnprintf
src/snprinf.[ch] rely on HAVE_SNPRINTF macro. The check is missed in configure script and libstrophe always use internal implementation of snprinf() which may be inefficient. Add check to configure.ac.
This commit is contained in:
@@ -31,6 +31,9 @@ AC_ARG_ENABLE([tls],
|
|||||||
AC_ARG_ENABLE([cares],
|
AC_ARG_ENABLE([cares],
|
||||||
[AS_HELP_STRING([--enable-cares], [use c-ares for DNS resolution])])
|
[AS_HELP_STRING([--enable-cares], [use c-ares for DNS resolution])])
|
||||||
|
|
||||||
|
AC_SEARCH_LIBS([socket], [network socket])
|
||||||
|
#AC_CHECK_FUNCS([snprintf vsnprintf])
|
||||||
|
|
||||||
if test "x$enable_tls" != xno; then
|
if test "x$enable_tls" != xno; then
|
||||||
PKG_CHECK_MODULES([openssl], [openssl],
|
PKG_CHECK_MODULES([openssl], [openssl],
|
||||||
[PC_REQUIRES="openssl ${PC_REQUIRES}"],
|
[PC_REQUIRES="openssl ${PC_REQUIRES}"],
|
||||||
@@ -91,8 +94,6 @@ fi
|
|||||||
|
|
||||||
AC_MSG_NOTICE([libstrophe will use the $with_parser XML parser])
|
AC_MSG_NOTICE([libstrophe will use the $with_parser XML parser])
|
||||||
|
|
||||||
AC_SEARCH_LIBS([socket], [network socket])
|
|
||||||
|
|
||||||
if test "x$enable_cares" = xyes; then
|
if test "x$enable_cares" = xyes; then
|
||||||
PKG_CHECK_MODULES([libcares], [libcares >= 1.7.0],
|
PKG_CHECK_MODULES([libcares], [libcares >= 1.7.0],
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user