openbsd-ports/net/putty/patches/patch-unix_configure_ac
sthen 9992816228 Unbreak build on a system without x11/gtk+ installed when autoconf is run;
the AM_PATH_GTK macro that was in configure.ac comes from the gtk+ package
itself.
2013-01-16 13:54:59 +00:00

31 lines
917 B
Plaintext

$OpenBSD: patch-unix_configure_ac,v 1.3 2013/01/16 13:54:59 sthen Exp $
--- unix/configure.ac.orig Sat May 22 15:07:25 2010
+++ unix/configure.ac Wed Jan 16 13:51:26 2013
@@ -11,7 +11,7 @@ AC_CONFIG_HEADERS([uxconfig.h:uxconfig.in])
AC_PROG_INSTALL
AC_PROG_CC
if test "X$GCC" = Xyes; then
- PUTTYCFLAGS="-Wall -Werror"
+ PUTTYCFLAGS="-Wall"
else
PUTTYCFLAGS=""
fi
@@ -31,8 +31,6 @@ AC_CHECK_HEADERS([utmpx.h sys/select.h],,,[
#include <sys/types.h>
#include <utmp.h>])
-# Look for both GTK 1 and GTK 2.
-AM_PATH_GTK([1.2.0], [gtk=1], [gtk=none])
AM_PATH_GTK_2_0([2.0.0], [gtk=2], [])
if test "$gtk" = "none"; then
all_targets="all-cli"
@@ -65,7 +63,7 @@ AS_IF([test "x$with_gssapi" != xno],
AC_CHECK_LIB(X11, XOpenDisplay)
-AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx])
+AC_CHECK_FUNCS([getaddrinfo posix_openpt ptsname setresuid strsignal updwtmpx])
AC_OUTPUT