X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fconfigure.ac;h=5b0c0c9ece437456b7e3d1dcf71eccfadc90f4c4;hb=12e019bafc75cb441e965c63e15dfceeaf71ca1e;hp=e1e33acbd5ae1e1e743f40010b5a40a0f54125ad;hpb=4cb79827c67c3817ed2a33ca95c2c4da909aafad;p=PuTTY.git diff --git a/unix/configure.ac b/unix/configure.ac index e1e33acb..5b0c0c9e 100644 --- a/unix/configure.ac +++ b/unix/configure.ac @@ -14,14 +14,16 @@ if test "X$GCC" = Xyes; then CFLAGS="$CFLAGS -Wall -Werror" fi -AC_CHECK_HEADERS([sys/sockio.h],,,[ ]) +AC_CHECK_HEADERS([utmpx.h sys/select.h],,,[ +#include +#include ]) 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_CHECK_FUNCS([getaddrinfo ptsname pututline setresuid strsignal]) +AC_CHECK_FUNCS([getaddrinfo ptsname setresuid strsignal updwtmpx]) AC_OUTPUT @@ -37,10 +39,13 @@ AH_BOTTOM([ #ifndef HAVE_STRSIGNAL # define HAVE_NO_STRSIGNAL #endif -#ifndef HAVE_PUTUTLINE +#if !defined(HAVE_UTMPX_H) || !defined(HAVE_UPDWTMPX) # define OMIT_UTMP #endif #ifndef HAVE_PTSNAME # define BSD_PTYS #endif +#ifndef HAVE_SYS_SELECT_H +# define HAVE_NO_SYS_SELECT_H +#endif ])