openbsd-ports/net/ntp/patches/patch-configure_in
2002-05-17 15:58:10 +00:00

22 lines
821 B
Plaintext

$OpenBSD: patch-configure_in,v 1.2 2002/05/17 15:58:10 danh Exp $
--- configure.in.orig Tue Dec 18 21:00:59 2001
+++ configure.in Mon May 6 15:07:08 2002
@@ -190,10 +190,16 @@ AC_CHECK_LIB(kvm, main) dnl We already
AC_CHECK_LIB(ld, nlist)
AC_CHECK_LIB(mld, nlist)
AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent, , , -lsocket))
+AC_CHECK_FUNCS(getifaddrs freeifaddrs)
AC_CHECK_FUNC(openlog, ,
AC_CHECK_LIB(gen, openlog, ,
AC_CHECK_LIB(syslog, openlog, , , -lsocket)))
-AC_CHECK_LIB(readline, readline)
+AC_CHECK_LIB(readline, readline, [cat >>confdefs.h <<EOF
+#define HAVE_LIBREADLINE 1
+EOF
+
+ LIBS="-lreadline -ltermcap $LIBS"
+], , -ltermcap)
dnl Digital UNIX V4.0 and Solaris 7 have POSIX.1c functions in -lrt
dnl Solaris 2.6 only has -lposix4; in Solaris 7, this is a symlink to -lrt,