uxpty.c uses non-X/Open facilities (notably strsignal()), so don't define
[u/mdw/putty] / unix / configure.ac
CommitLineData
76d3a838 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.
6
7AC_INIT
8AC_CONFIG_FILES([Makefile])
9AC_CONFIG_HEADERS([uxconfig.h:uxconfig.in])
10
11AC_PROG_INSTALL
12AC_PROG_CC
13if test "X$GCC" = Xyes; then
14 CFLAGS="$CFLAGS -Wall -Werror"
15fi
16
17AM_PATH_GTK([1.2.0], [all_targets="all-cli all-gtk"], [all_targets="all-cli"])
18AC_SUBST([all_targets])
19
20AC_SEARCH_LIBS([socket], [xnet])
21
22AC_CHECK_FUNCS([getaddrinfo ptsname pututline setresuid strsignal])
23
24AC_OUTPUT
25
26AH_BOTTOM([
27/* Convert autoconf definitions to ones that PuTTY wants. */
28
29#ifndef HAVE_GETADDRINFO
30# define NO_IPV6
31#endif
32#ifndef HAVE_SETRESUID
33# define HAVE_NO_SETRESUID
34#endif
35#ifndef HAVE_STRSIGNAL
36# define HAVE_NO_STRSIGNAL
37#endif
38#ifndef HAVE_PUTUTLINE
39# define OMIT_UTMP
40#endif
41#ifndef HAVE_PTSNAME
42# define BSD_PTYS
43#endif
44])