1 # To compile this into a configure script, you need:
2 # * Autoconf 2.50 or newer
3 # * Gtk (for $prefix/share/aclocal/gtk.m4)
4 # * Automake (for aclocal)
5 # If you've got them, running "autoreconf" should work.
8 AC_CONFIG_FILES([Makefile])
9 AC_CONFIG_HEADERS([uxconfig.h:uxconfig.in])
13 if test "X$GCC" = Xyes; then
14 CFLAGS="$CFLAGS -Wall -Werror"
17 AC_CHECK_HEADERS([sys/sockio.h],,,[ ])
19 AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"])
20 AC_SUBST([all_targets])
22 AC_SEARCH_LIBS([socket], [xnet])
24 AC_CHECK_FUNCS([getaddrinfo ptsname pututline setresuid strsignal])
29 /* Convert autoconf definitions to ones that PuTTY wants. */
31 #ifndef HAVE_GETADDRINFO
34 #ifndef HAVE_SETRESUID
35 # define HAVE_NO_SETRESUID
37 #ifndef HAVE_STRSIGNAL
38 # define HAVE_NO_STRSIGNAL
40 #ifndef HAVE_PUTUTLINE