Cristian RodrÃguez
2015-Feb-11 17:51 UTC
[PATCH] configure: Fix b64_ntop, b64_pton detection on linux systems
These functions are available in libresolv and the public declarations are macros. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index cb66f54..818b652 100644 --- a/configure.ac +++ b/configure.ac @@ -1605,6 +1605,10 @@ if test "x$use_pie" != "xno"; then fi fi +AC_CHECK_DECLS([b64_ntop, b64_pton], [], [], [#include <resolv.h>]) +AC_SEARCH_LIBS([__b64_ntop], [resolv]) +AC_SEARCH_LIBS([__b64_pton], [resolv]) + dnl Checks for library functions. Please keep in alphabetical order AC_CHECK_FUNCS([ \ Blowfish_initstate \ -- 2.2.2