initial patch for putty, note that this doesn't fix all of the issue, but is a first step towards a patch that will allow for building putty on haiku. Check the portlog to see what else is required to build it. TODO, figure out a cleaner way to handle -lnetwork and a way to check for and skip gtk (if not present), rather that just commenting it out as i have done here.

This commit is contained in:
Scott McCreary
2009-02-07 22:04:56 +00:00
parent 2482f5fc6e
commit a80e6551f3

View File

@@ -0,0 +1,24 @@
diff -urN putty-0.60/unix/configure.ac putty-0.60-haiku/unix/configure.ac
--- putty-0.60/unix/configure.ac 2009-02-07 20:49:11.000000000 +0000
+++ putty-0.60-haiku/unix/configure.ac 2009-02-07 21:50:05.000000000 +0000
@@ -14,14 +14,16 @@
CFLAGS="$CFLAGS -Wall -Werror"
fi
-AC_CHECK_HEADERS([utmpx.h sys/select.h],,,[
-#include <sys/types.h>
-#include <utmp.h>])
+AC_CHECK_HEADERS([utmpx.h])
+AC_CHECK_HEADERS([sys/select.h])
+AC_CHECK_HEADERS([sys/types.h])
+AC_CHECK_HEADERS([utmp.h])
-AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"])
+#AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"])
AC_SUBST([all_targets])
AC_SEARCH_LIBS([socket], [xnet])
+AC_SEARCH_LIBS([socket], [network])
AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx])