[PATCH] configure: Fix b64_ntop, b64_pton detection on linux systems

Cristian Rodríguez crrodriguez at opensuse.org
Thu Feb 12 04:51:23 AEDT 2015


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



More information about the openssh-unix-dev mailing list